[2780] in java-interest
Moving Components
daemon@ATHENA.MIT.EDU (Sybille Hambach)
Fri Oct 13 06:35:09 1995
From: Sybille Hambach <sybille@egd.igd.fhg.de>
Date: Fri, 13 Oct 95 09:33:04 +0100
To: java-interest@java.sun.com
Hi,
I wrote a class extending the Frame class, constructor looks as follows:
public MyFrame(String title) {
super(title);
resize(400,400);
Panel p = new Panel();
TextField tf = new TextField();
tf.reshape(230,190,50,30);
p.add(tf);
setLayout(new BorderLayout());
add("Center", p);
show();
}
I thought the TextField should appear at position (230,190), but it
doesn't. However, the size is right.
I tried some other Components and they didn't move as well.
What did I do wrong ???
Bille.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com