Skip to main content

How to make cell Label components of a Table to occupy all of the grid cell area ?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
andrianiaina
Offline
Joined: 2011-05-18

Hi all,

I have a Table , and I set its components UIID to oddRowsCell and evenRowsCell if the row is odd or even. In the resource editor I set background color styles for both UIID in the selected and unselected options.
The problem is that in runtime the Label which renders the table cells is not fully occupying the Table's grid cells. So how to make the Label occupy the Tables's grid cell ?

Thank you very much indeed

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

You need to set the margin of the cell components to 0, you can do this manually or in the GUI builder.
You might want to 0 the padding of the table as well.