This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Exactly, except the panel has been added to BorderLayout CENTER so will fill the frame,
so would have to do something like frame.getContentPane().setLayout(new FlowLayout())
in addition to the panel.setBorder(BorderFactory.createEtchedBorder()) or whatever.