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

Scrolling A JLayeredPane

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm working on a project that includes dragging objects (labels) around a JLayeredPane. The background of the layered pane can vary, and the size of the layered pane changes to match the size of the background image.

This works well but I want to have the layered pane contained in a scroll pane, so that if the layered pane becomes large then the user can scroll around. I have done this but when the layered pane is resized larger than the scroll pane the scroll bars do not appear.



I use setSize on the layered pane to resize it. Can anyone give me a hint as to why the scroll bars are not appearing?

Any help greatly appreciated.

Regards

Simon
reply
    Bookmark Topic Watch Topic
  • New Topic