If you are using either GridLayout or BorderLayout they both have methods to change the space between components.
In GridLayout this can be done in the 4 int parameter consturctor and in BorderLayout the 2 int parameter constructor. Both LayoutManagers have the methods setHgap and setVgap.
If you are using GridBagLayout you need to make sure that the insets on the GridBagConstraints is changed to whatever you need. Guessing you are using one of the other managers though.
willcodejavaforfood
2009-05-28 10:20:44