Hello,
I have a JideBoxLayout(LINE_AXIS) within a GridbagLayout cell.
I've got 3 components within. The main component is a JLabel added with VARY constraint (but i've got the same problem with FLEXIBLE). It receives its text from the selection in a Jtable.
When nothing is selected the text of the JLabel is set to "--".
When its text is "--" its height is smaller than when it has a normal text (eg "c:\some folder\some file.txt").
I don't have this problem with a classic BoxLayout, where height is constant.
I tried to force the height (both Minimum- and PreferredSize) of the label using the label's FontMetrics to compute a desired height. It doesn't change anything.
How should I proceed ?
Thanks,