• Post Reply Bookmark Topic Watch Topic
  • New Topic

problems with panels  RSS feed

 
johnbach
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey all,
I'm having having problems getting the flowlayout to work properly in an added panel. First the user presses a button to add a panel, then various components are added to that panel. next, validate fnts are called with respect to the newly created panel. everything draw correctly but the layout is messed up. The new components do not spill over the end of the line (like flowlayout should work). It seems that the newly added panel is ignoring its parent. Any suggestions?
 
Nathanael Ulrick
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) try calling pack() in the parent frame
or
2) validate() and (maybe) repaint() in the panel
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"johnbach"
your name is not in accordance with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines at http://www.javaranch.com/name.jsp
Thanks for your cooperation.
regds.
- satya
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!