• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collapsing JScrollPane?

 
Amund Frislie
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know whether this will solve your problem.
But just a thought. Have message panel on a scrollpane.
 
Amund Frislie
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good idea. It works now. Thanks Mathew.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic