U
Ulf Meinhardt
Assume a GridBayLayout with two button rows:
The first button row contains 3 equal sized buttons
and the second row conatins 2 equal sized buttons.
"Equal sized" menas the button in the same row have the same dimensions
(but not necessarily in comparison to the buttons in the other row).
The problem now is to code this within a GridBagLayout.
The result seems to be always either
Button1 ! Button2 ! Button3 !
Button4 ! Button5 !
or
Button1 ! Button2 ! Button3 !
Button4 ! Button5 !
But never (as desired):
Button1 ! Button2 ! Button3 !
Button4 ! Button5 !
Does someone have an idea (maybe with weightx constraint) ?
Ulf
The first button row contains 3 equal sized buttons
and the second row conatins 2 equal sized buttons.
"Equal sized" menas the button in the same row have the same dimensions
(but not necessarily in comparison to the buttons in the other row).
The problem now is to code this within a GridBagLayout.
The result seems to be always either
Button1 ! Button2 ! Button3 !
Button4 ! Button5 !
or
Button1 ! Button2 ! Button3 !
Button4 ! Button5 !
But never (as desired):
Button1 ! Button2 ! Button3 !
Button4 ! Button5 !
Does someone have an idea (maybe with weightx constraint) ?
Ulf