wood burning stoves 2.0*
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.
Consider Paul's rocket mass heater.
subject: JScrollpane problem
Similar Threads
Creating and opening a window if the button is clicked in an applet
JPanels with different content should have the same size
Sample maintenance disply