Results 1 to 4 of 4

Thread: JDesktop Pane Scrollable

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Question 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

  2. #2
    Lively Member
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    115
    Try to do it with a JScrollPane

    JScrollPane scrollPane = new JScrollPane(desktopPane);

    and then add the scrollPane to the JFrame

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222
    would that automatically make the desktoppane scroll properly when objects are put outside the viewable area?

  4. #4
    Lively Member
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    115
    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
  •  



Click Here to Expand Forum to Full Width