File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JScrollpane problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JScrollpane problem" Watch "JScrollpane problem" New topic

JScrollpane problem

Kay Tracid
Ranch Hand

Joined: Mar 06, 2002
Posts: 148
I have a problem with the scrolling and a flowlayout. If i reduce the size of my frame the jscrollpane doesnt scroll...? can you help please.

[ March 05, 2003: Message edited by: Nathan Pruett ]
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

I think the problem is that FlowLayout always honors the preferred size of it's components, so it will never resize the scroll pane below it's preferred size.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: JScrollpane problem
It's not a secret anymore!