• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BorderLayout

 
madhur jain
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
why is that if i set borderlayout after adding components to the applet nothing is visible.
this is not the case with other layouts.
madhur.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should be possible to make a call to a method
validate() or revalidate() (or something similar) to cause the layout manager to reorganise the components according to its particular layout policy. Look for something like that.
If you have already laid out the components to, say, a FlowLayout then how do you then tell the new BorderLayout to place things (North, South, East, West, Center)?
-Barry
[ September 10, 2002: Message edited by: Barry Gaunt ]
 
awais syed
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you set layout before adding componenet to container.because ech layout has its own policy about setting the component and it is done only when the layout set before adding the componet.
Originally posted by madhur jain:
hi!
why is that if i set borderlayout after adding components to the applet nothing is visible.
this is not the case with other layouts.
madhur.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic