• Post Reply Bookmark Topic Watch Topic
  • New Topic

resizing window scrollpanes

 
luke patte
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a method to create a jWindow with an internal scrollPane that follows the size of the window when it is resized , in the same way that explorer has scrollbars that change size and dependent on the window content and follows its edges when resized. Thanks
luke
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch luke.
That is the default behaviour if you add the scrollpane to a LayoutManager that allows it to resize. For instance the center region of BorderLayout.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!