• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTree and JScrollPane

 
Verena Dear
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!