Friday, 13 September 2013

JTabbedPane Forced Size

JTabbedPane Forced Size

I have a JFrame that has 3 components on it.
The design is like this:
http://i.imgur.com/2EJxFcb.png
My problem happens in the JTabbedPane.
The pane begins off with a settings panel, which is added to it when the
whole JFrame loads up. Then, when the user connects, a new tab is added to
the pane (the actual chat panel).
When that tab is added to the pane, it overlaps the bottom of the java
applet loaded from the local file, which is NOT what I want to do. Here is
how it looks:
http://i.imgur.com/RhidGdN.png
As you can tell, the bottom of the highscores and java applet has been cut
off. How do I resize the JTabbedPane to make it resize towards the bottom,
instead of upwards?

No comments:

Post a Comment