When resizing a java GUI to a smaller screen, how to make sure a particular component is always displayed?
Posted on 2008-02-02
I have constructed a GUI using java swing, in the GUI, I used GridBagConstraint to arrange components.
I added a JLable(nameJLable), a JTextField, a JCheckBox, then another JLabel (explanationLabel)
At the moment when I resize the GUI to a smaller screen, the explanation is always the last component visible - this is the least important component to be displayed. How do I make sure the nameJLable is always displayed when GUI is resized to s smaller GUI?