Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FlowLayout Display Problems

 
Chase Becicka
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't seem to get my searchPanel to show up on my JFrame and I don't know why, its not conflicting with any other JFrames and also I wished to know that lets say I added a second Panel to the south region of the boarder layout how would I get that layout to display nicly with the other???

[ December 13, 2004: Message edited by: Chase Becicka ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about moving the labels?

if ok, change this
private void addComponents(...)
{
gbc.anchor = gbc.WEST; //<-----------
gbc.gridwidth = gbc.RELATIVE;
...
}


to this
private void addComponents(...)
{
gbc.anchor = gbc.EAST; //<------------
gbc.gridwidth = gbc.RELATIVE;
...
}
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I'm confused.

The original post had WEST, now it's EAST, and a different message.

Think I'll wait for the book.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic