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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why did the scrollbar is not available?
 
Similar Threads
gridlayout - set size
Panel grid
Adding Scrollbar to JPanel
Rolling Scrollbar to JScrollPane's top
How to add scrollbar