*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Collapsing JScrollPane? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Collapsing JScrollPane?" Watch "Collapsing JScrollPane?" New topic
Author

Collapsing JScrollPane?

Amund Frislie
Greenhorn

Joined: Jan 25, 2002
Posts: 17
I have build up my gui using gridbag layout. On the top row, there are 3 panels (search, message and booking). On the row below, spanning all columns, there's a JScrollPane. Problem is, if the scroll pane is filled and the message panel is updated with some new text, this makes the whole scroll pane collapse. I've tried to put the scroll pane inside another JPanel, but without success. Anyone experienced this? Any suggestions on how to aviod it?
Thanks.
Amund
Mathew Sam
Ranch Hand

Joined: Dec 19, 2001
Posts: 124
Don't know whether this will solve your problem.
But just a thought. Have message panel on a scrollpane.
Amund Frislie
Greenhorn

Joined: Jan 25, 2002
Posts: 17
Good idea. It works now. Thanks Mathew.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Collapsing JScrollPane?
 
Similar Threads
Cant get multiple row result in UI
how to add a scrollpane...
JScrollPane
JEditorPane
Mirroring JScrollBars