Class project, I've written all the nuts and bolts and now it's time to write the GUI. This is hard! I'm new to Java and I've tried GridLayout and GridBagLayout but neither of them worked perfectly.
The best way to describe what I want is with an image:
I have a menu/control panel on the left, which I want to take up 1/3 (give or take) of the frame. The remainder of the frame will be filled with the display window. When the frame is resized, I want the display window to "sacrificially" resize so that the control panel keeps its size. Until the user minimises the frame so much that there is no longer any room for the control panel - then it (the control panel) can start getting smaller. I know how to achieve this using QT, but I'm having trouble doing it with swing.
I think the image is clearer than by description.
Thoughts on best way to achieve this? Cheers.