• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Adding scrollbar to JDesktopPane

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
     
    Don't get me started about those stupid light bulbs.
    reply
      Bookmark Topic Watch Topic
    • New Topic