posted 20 years ago
I have a JFrame that uses the GridBag Layout.
In one of the cells, I have a JPanel which used a GridLayout.
When I open the JFrame for the first time, everything look great.
I even have an "Add" button that adds data to the inner JPanel.
The entire JPanel is re-created everytime I hit the "Add" button.
This work fine, but when I close the JFrame and reopen it,
The inner JFrame does not render correctly. It seems to be out of place
and undersized.
Any Ideas?
When I close and reopen the JFrame, I recreate a new JFrame and JPanel.
Could the old one be affecting it?
Note, the JPanel is a private member of my JFrame class.
Thanks,
Terrence