J Builder Designer Drives me Crazy!! Help Is this an art form?
Using JB 5
Trying to put two J Panels which are both flow layout
onto another J panel which is border layout.
I put on the first one (which is green)in the North (sometimes I can see it some times I can't) and then I put on the 2nd one (yellow) in the center and then the 1st one dissapears and the Frame just shows a grey area where the first one is supposed to be.
I have been fiddling with the preferred size etc but I can't figure out what is going on.
Is this some kind of torture or do I need to read something?
Thanks
[580 byte] By [
PatchesP] at [2007-9-26 21:30:25]

The designer is OK for simple forms and can be used effectively with experience. It's a question of knowing what not to do.
The outline is sometimes easier to use than the designer. You can drop and manipulate objects in the outline as well as the designer.
It may help to design individual panels (as new panels) using the designer then incorporate the code into your frame.
I typically use the designer to get the code written, especially the listeners code, then write a method for each panel cutting and pasting code from jbinit() as required.
getContentPane().add(buildPanels());
...
JPanel buildPanels() {
JPanel result = new JPanel(new BorderLayout()) ;
result.add(buildNorthPanel());
result.add(buildSouthPanel());
result.add(buildEastPanel());
result.add(buildWestPanel());
result.add(buildCenterPanel());
return result;
}
JPanel buildNorthPanel() {
JPanel result = new JPanel(new FlowLayout()) ;
...
return result;
}
Thanks please see my other comment re JPanel null
pointer. I have commented out a paint method in the problem panel and didn't get the exception for awhile
but am getting it againg with the paint method still disabled. The offending panel starts in its own panel and then is dropped into another panel which in turn is twice dropped into a frame?
Any clues?