File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Why did the scrollbar is not available? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Why did the scrollbar is not available?" Watch "Why did the scrollbar is not available?" New topic
Author

Why did the scrollbar is not available?

huang gang
Greenhorn

Joined: Nov 17, 2002
Posts: 13
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

Joined: Nov 17, 2002
Posts: 13
silly question, I've got the answer, &*^%$#$@#$@!

use

j.setPrefferedSize(..)

instead.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why did the scrollbar is not available?