• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to size a JSplitPane?

 
Tris Rabar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
An easy question: How do I size a JSplitPane so that remains the same size always, and does not change according to the component size? (However, the entire component should still be visible via a scrollpane)
Thanks!
 
Avin Sinanan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tricia...
You could make two JPanels with differnt names and add it to the same JFrame and align them horizintally. I heard someone talk about this already.
 
Tris Rabar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Avin.
Any other ideas, anyone?
Thanks a lot!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!