Closed husker-dev closed 4 years ago
You can use custom constraints for GroupPane
(it uses GroupPaneLayout
):
GroupPane pane = new GroupPane ();
pane.add ( new JButton ( "Test" ), GroupPaneConstraints.FILL );
pane.add ( new JButton ( "-" ) );
TestFrame.show ( pane );
GroupPaneConstraints.FILL
is a predefined one, but you can also create custom GroupPaneConstraints
with custom sizes, you can check it's JavaDoc for more info: GroupPaneConstraints:47
How can I configure GroupPane as on screenshot? I need to fill free space with the first
WebButton
. I have not found methods that can change layout.