How to make the component not brim the grid in GridLayout

In GridLayout and BoxLayout, the component I added was full of that grid, how do I make the component smaller and not brim the grid
[138 byte] By [zhirenshaoa] at [2007-9-29 20:09:08]
# 1
With the GridLayout you can specify a horizontal/vertical gap between components. With a BoxLayout you can at a Strut between components. Read the API for more information.
camickra at 2007-7-16 0:22:30 > top of Java-index,Archived Forums,Swing...