my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Collapsing JScrollPane?
 
Similar Threads
Cant get multiple row result in UI
JScrollPane
JEditorPane
Mirroring JScrollBars
how to add a scrollpane...