Place Content In JPanelsWhenever you are creating content, be it a collection of buttons, a new custom control, or a collection of other related controls, place them all in a JPanel. This wil give you a modular unit that can be reused elsewhere.
The pitfall to watch out for is placing your GUI content into a JFrame,
or JDialog, or JInternalFrame. If you ever want to reuse the same
content in another setting, it will have to be cut-and-pasted. If it
was in a separate JPanel subtype, it could be Copyright © 2009 Andrew Oliver |