Sunday, April 27, 2008

Best J2EE material from SUN site

Check out all the concepts and examples of J2EE at this link...

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/

Friday, April 18, 2008

Uses of Drag and Drop feature

Now a days the fancy n yet useful feature is drap and drop...
Eclipse(swt/jface) and other frame works supports drag and drop widely...


The way in which we drag drop files in windows , similarly its a gud to have feature for desktop applications as well..say u have a viewer(widget to display data) and u want to fill some data present in a file in that viewer in the form of a table ...instead of asking user to browse through file dialog...its gud to support drag and drop feature from any location in file system onto the application...Surprisingly u can do this minimal lines of code...

How do u decide what actions should go into Menu and Tool bar?

Whenever we design a desktop application ..we often need to use Menu and Tool bar to do some actions when user clicks on either of menu or tool bar items...How do u decide which actions go into Menu and which actions go into Tool Bar...

Say u have an editor/view or composite(in general say GUI area) and depending on some specific widget selection (or some other restrictions ) only u want to allow some action to be done , then u can put those actions in corresponding menu items...

If u want user to give freedom to excute an action no matter what ever is selection or state of any widget in GUI , then all those kind of actions go into Tool Bar...

Any comments ???

Use of confirm dialogs in GUI......What do u prefer a Menu or a pop up dialog in a default case??

Consider a scenario in which u want to inform user that some thing is going to happen when he plays around with GUI..say User is filling an online application form and when hes done with that he wants to click one of three buttons Submit , Cancel , Reset ....


No issues with Submit/Cancel buttons as their actions are trivial...
In case of Reset button... Reset button entire application form is reset and all info he entered will be lost ...So what if he clicks it by mistake...So when ever this kind of scenario is there...its always gud to open a confirm dialog and according to yes/no choice of user , form should be reset / do nothing...




Out of box ,... another idea is if a case is default and if u want user to confirm what hes doing prefer a Dialog and if he has multiple actions then only go for Menu...