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