• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Scrollbars on JFrame when JInternalFrame is bigger than the JFrame

Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to add ScrollBars to the JFrame(Parent screen), when the internal frame(child scereen) size is greater than the size of the JFrame. and those scroll bars should have the control over the child screen.

For example, when the height of the child screen is greater than the parent screen, then Vertical scroll bar should be added to the parent screen. So, In this case i couldn't view the bottom of the child screen without moving the scroll bar. when I move the scroll bar, I should be able to view the lower portion of the child screen.

Child screen size is fixed and it can be bigger than the parent screen in some cases. If it is bigger, then it should be within the boundary of the parent screen and all the components should be viewable to the user. In this scenarioo, I can think of only adding scrollbars to the parent screen and using that to view the entire child screen.

Is there anyway to do this?


Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes - you would make a Scrollable JDesktopPane to hold your internal frames.
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic