This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

JScrollpane problem

Kay Tracid
Ranch Hand

Joined: Mar 06, 2002
Posts: 148
Hi,
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.

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

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JScrollpane problem
 
jQuery in Action, 3rd edition