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.
posted 17 years ago
Thanks for the responses, I'll give them a try... Graham