I\'ve seen a couple of ways of doing theism they both seem to work but I\'m just wondering if one is better practice over the other.
For example, with a JFrame
JFrame
From Java5 isn't required
to add JComponents to the ContentPane, just JFrame.add(JComponent)
JComponents
ContentPane
JFrame.add(JComponent)
JFrame has implemented BorderLayout, then myFrame.add(new JButton("OK")); is placed to the CENTER area
BorderLayout
myFrame.add(new JButton("OK"));
CENTER