posted 21 years ago
I have a JFrame that contains 5 JTabbedPane. I added a changeListener event to these JTabbedPane because I want to frame to be a different size depending on which tab you selected and are viewing. Here's the code for that:
Now, my problem is that is does resize when I go back to a smaller size, but all the components of that tab are left deformed. The components inside of the first 3 tabbed are left as if the frame was still big. If I resize the frame manually with my mouse, they come back to their shape. But not if I use the resize function... what can i do?
Thanks a bunch...