This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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