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.
Don't set the layout to null. Set the size using setMinimumSize(), setPreferredSize() methods inherited from JComponent. It takes a Dimension as parameter. So the code would look like this: button.setPreferredSize(new Dimension(100, 50)); I have yet to find setting the layout to null to be needed.
Joined: Nov 01, 2001
Thanks for the responses, I'll give them a try... Graham