[3355] in java-interest

home help back first fref pref prev next nref lref last post

BorderLayout bug

daemon@ATHENA.MIT.EDU (Larry Liang)
Wed Nov 8 21:05:42 1995

Date: Wed, 8 Nov 1995 17:12:53 -0500
From: Larry Liang <lliang@bellcore.com>
To: java-interest@java.sun.com

I tried to create a screen with a BorderLayout panel having another
panel as the center:

setLayout(new BorderLayout());
Panel p = new Panel();
p.setLayout(new GridLayout(1, 3));
p.add("West", new Button("west"));
p.add("Center", new Button("center"));
p.add("East", new Button("east"));
add("Center", p);
add("West", new Button("single"));

The "west" button would overlap with the "single" button. And there is
a gap between the "west" button and the "center" button. It appears
when the center component of a BorderLayout is another panel, the left
most component of the nexted panel is confused. Does anyone else have
same problem? 

Larry
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post