wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Scrollbars on JFrame when JInternalFrame is bigger than the JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Scrollbars on JFrame when JInternalFrame is bigger than the JFrame" Watch "Scrollbars on JFrame when JInternalFrame is bigger than the JFrame" New topic
Author

Scrollbars on JFrame when JInternalFrame is bigger than the JFrame

Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
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?

Thanks,

Makesh


Makesh<br /> <br />SCJP | SCWCD | SCBCD | SCEA
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Yes - you would make a Scrollable JDesktopPane to hold your internal frames.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scrollbars on JFrame when JInternalFrame is bigger than the JFrame
 
Similar Threads
Swing and JScrollBar
Size of frame problem /XP
scrollbar platform differences using version 1.1
laying a panel on a panel
JScrollPane resizing component in Viewport