-1

I have a JFrame that has 3 components on it.

The design is like this:

enter image description here

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:

enter image description here

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?

Tyluur
  • 95
  • 2
  • 10

1 Answers1

0

Call pack() after adding a tab to the pane.

Tyluur
  • 95
  • 2
  • 10