how to resize the panel within a jFrame automatically
Posted on 2010-11-19
I am having a JFrame and JPanel.
JPanel is having GridBagLayout(). within the panel I have a button and a JScrollPane and JScrollPane is having table.
I filled the JFrame with JPanel using jframe.setContentPane(jpane).
When I increase or decrease the size of the jframe window its components i.e. jpane is remaining in the middle of the window but it's size is not varying.
So when i increase the size of the jframe window how should I make the jpane to increase its size.