• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding scrollbar to JDesktopPane

 
M Sharma
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I would appreciate if anyone could give a solution to on how to add a scrollbar to JDesktopPane.

Scenario is, we have a JDesktopPane, which inturn display several JInternalFrame's (child windows) within it. In some cases, we have certain child windows which are exceeding the screen size.

To tackle this problem, we thought of a solution wherein the JDesktopPane i.e. the parent frame will have scrollbars which will help the user to see the entire child screen in case if it execeeds the current screen.

So if anyone could let me know, how to add a scrollbar to a JDesktopPane, i think it will solve the problem in hand.


Thanks in Advance,
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution lies in using good keywords in Google search ;-)

See:
  • Java Technology Forums - How to add scrollpane to JDesktopPane
  • Create a scrollable virtual desktop in Swing


  • Cheers
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!