Fred Hamilton wrote:Also, I see you have a number of JPanels for various sections of the GUI, but it wasn't clear to me if you had one highlevel JPanel for all the 'sections', or if you laid out the sections directly in the contentPane of the JFrame. It looks like the second method, but I am not sure. One advantage of adding all the sections to a JPanel, then setting the single JPanel to the contentPane of the JFrame, is that you can just as easily add the single JPanel to a JApplet.
ps Pete beat me to it, looks like he is more adept than I at figuring out what is going on.
pete stein wrote:
Fred Hamilton wrote:Also, I see you have a number of JPanels for various sections of the GUI, but it wasn't clear to me if you had one highlevel JPanel for all the 'sections', or if you laid out the sections directly in the contentPane of the JFrame. It looks like the second method, but I am not sure. One advantage of adding all the sections to a JPanel, then setting the single JPanel to the contentPane of the JFrame, is that you can just as easily add the single JPanel to a JApplet.
Hey Fred, it looks like he's creating a JTabbedPane as the main JComponent and adding it to the contentPane via the method addComponentToPane(Container pane).
ps Pete beat me to it, looks like he is more adept than I at figuring out what is going on.
I'm certainly not sure about that, but perhaps I'm just as or more opinionated than you. ;) Good to see you.
Sebastion Hill wrote:4) Gridbaglayout
... the java tutorials said this was the easiest to learn
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|