Trace:
Differences
This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
jvx:client:gui:column_width [2018/03/19 13:29] admin created |
jvx:client:gui:column_width [2020/06/08 14:56] cduncan |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTRANS~~ | ~~NOTRANS~~ | ||
- | ~~Title: Setting column width~~ | + | ~~Title: Setting Column Width~~ |
- | The column width can be set via ColumnDefinition, e.g. | + | The column width can be set via ColumnDefinition, e.g., |
<file java> | <file java> | ||
Line 10: | Line 10: | ||
The table uses this width for the cell width. | The table uses this width for the cell width. | ||
- | But be careful, because the real cell width depends on the UI implementation. Some GUI toolkits like Swing, fill the empty space and adds the difference to existing cells. In case of Swing UI, it's possible to disable this feature: | + | But be careful, because the real cell width depends on the UI implementation. Some GUI toolkits like Swing fill the empty space and add the difference to existing cells. In the case of Swing UI, it's possible to disable this feature: |
<file java> | <file java> | ||
(((JVxTable)table.getResource()).setAutoFillEmptySpace(false); | (((JVxTable)table.getResource()).setAutoFillEmptySpace(false); | ||
</file> | </file> |