I’m a web developer and now developing a swing application. I’m using Netbeans. Currently the layouts is set as free layout. But while running too many issues are there.
What is the best suggested method to start with it? There will be multiple layers/levels of forms/options/buttons/tabs. There are many Layouts. Which Layout should I go for. I’ll be using both. Netbeans + hand coding.
Free layout isn’t good during resizing the container or manipulation (adding, removing, setting visible/invisible) of components placed in the frames (or other containers). Using a layout manager with different kinds of layouts works perfectly giving the required blend between easy coding and personalization.
Here is the tutorial for the LayoutManager (along with further links to library classes, etc. ):
http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html
However, you won’t be able to modify the code generated by the netbeans IDE. You will have to either use handwritten code entirely or use the NetBeans generated code entirely. It can’t be both.