aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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?
 
Similar Threads
gridlayout - set size
How to add scrollbar
Adding Scrollbar to JPanel
Rolling Scrollbar to JScrollPane's top
Panel grid