this is my first question on here, so please forgive me when i am breaking any rules, or not using the right format
I am creating a simple form in java swing which consists of 1 JLabel, 1 JTextField, and 1 Button
|---------------------------|
| |
| JLabel |
| |
|---------------------------|
| JTextField | Button |
|---------------------------|
The Button should be in the bottom-right corner, the JTextField left of it, the JLabel on the top, spanning both columns
I want the Button to be a fixed size, the JTextField a fixed height, but using the full width (except for what is in use by the Button), and the JLabel using all other space (with and height)
I am not even sure if i should use a GridBagLayout or another Layout ?
This is probably a very easy question, but got me puzzled for quite some time (too many options with the GridBarLayout i guess)
OK here is a demo code that should get you going: