aspose file tools
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

Win a copy of The Software Craftsman this week in the Agile forum!
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.
Have you tried LearnNowOnline?
subject: JScrollpane problem