• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why did the scrollbar is not available?

 
huang gang
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,all,

I use these in main():

!

the scrollbar shows, but not available. you see, I have set the size of Panel larger than the ScrollPane, it does not work...

any help?
thanks
 
huang gang
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
silly question, I've got the answer, &*^%$#$@#$@!

use

j.setPrefferedSize(..)

instead.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic