Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JPanel in JTabbedPane within a JSplitPane  RSS feed

 
Derek Tan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JPanel inserted into a JTabbedPane which is part of a JSplitPane. When I was sliding the splitter to minimize the JTabbedPane with the JPanel, some unexpected situation occurred. The JPanel slide outside the edge of the JInternalFrame where all the above components reside. Do anyone has any idea what the remedy?
Thank you.
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use a JSplitPane, then you should add only JScrollPanes to it. Maybe this helps to skip your problem. If not, then please post a little bit source code. A small running sample would be nice.
 
Derek Tan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are very right. I was using a mixture of heavy-weighted and light-weighted GUI components. By changing every thing to either one category had solve my problem.
Thank you very much.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!