Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic