请问:
    怎么改textfield的大小?
    在frame里添加一个textfield后,看起来比较小,用setSize()也没反应
    谢谢各位了!
具体代码如下:
import java.awt.*;
import java.awt.event.*;public class Login
{
Frame frame1;
Button button1;
TextField tf1,tf2;
Label l1,l2;

public void init1()
{
frame1 = new Frame("登录界面");
button1 = new Button("登录");
l1 = new Label("用户名");
l2 = new Label("密码");
tf1 = new TextField("");
tf2 = new TextField("");
tf1.setSize(50,50);

frame1.setLayout(new FlowLayout(FlowLayout.LEFT,20,30));

frame1.add(l1);
frame1.add(tf1);
frame1.add(l2);
frame1.add(tf2);
frame1.add(button1);

frame1.setSize(300,300);
frame1.setVisible(true);

frame1.addWindowListener(new WindowClosing());
}

class WindowClosing extends WindowAdapter
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
}

public static void main(String aa[])
{
new Login().init1();
}
}