|
-
Mar 27th, 2003, 06:25 AM
#1
Thread Starter
Addicted Member
JDesktop Pane Scrollable
Is there any easy solution, to getting a JDesktop Pane to add scroll bars automatically when a child window is moved out of the viewable area?
Cheers for any suggestion or links
Andy
-
Mar 27th, 2003, 02:43 PM
#2
Lively Member
Try to do it with a JScrollPane
JScrollPane scrollPane = new JScrollPane(desktopPane);
and then add the scrollPane to the JFrame
-
Mar 27th, 2003, 03:13 PM
#3
Thread Starter
Addicted Member
would that automatically make the desktoppane scroll properly when objects are put outside the viewable area?
-
Mar 27th, 2003, 04:11 PM
#4
Lively Member
I haven't tried it on a JDesktopPane, but when using a JScrollPane with a JList it automatically adds scrollbars when the content doesn't fit without scrolling.
So, it should add scrollbars... try it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|