• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JTree and JScrollPane

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

there's a little problem that keeps me busy for hours now and I hope you can help me.

I've got a tree and a scrollpanel, the scrollpanel's bars are set to 'AS_NEEDED'. Now the tree expands and gets out of bounds - the scrollbars should appear, but they do not. Why?

I do all this graphic stuff with Netbeans 3.6 and the layout is set to borderLayout. Maybe this is important.

Thanks for any help,

--Verena
 
Verena Dear
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally I've found it. I only had to set the size to NULL, I now set preferredSize, MaximumSize and MinimumSize to NULL (I used to set it to 0,0) and now it works.

Can't believe that.

--Verena
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!