File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes FlowLayout Display Problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "FlowLayout Display Problems" Watch "FlowLayout Display Problems" New topic
Author

FlowLayout Display Problems

Chase Becicka
Greenhorn

Joined: Feb 16, 2004
Posts: 23
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

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Jan 14, 2004
Posts: 1535
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Well, I'm confused.

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

Think I'll wait for the book.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FlowLayout Display Problems