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 :)
Printable View
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 :)
Try to do it with a JScrollPane
JScrollPane scrollPane = new JScrollPane(desktopPane);
and then add the scrollPane to the JFrame
would that automatically make the desktoppane scroll properly when objects are put outside the viewable area?
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 :)