你的源程序
t。*;public class FiveButtons{
public static void main(String args[]){
Frame f = new Frame("BorderLayout");
tLayout(new BorderLayout());
d("北", new Button("North"));
d("南", new Button("South"));
d("东", new Button("East"));
d("西", new Button("West"));
d("中", new Button("Center"));//这里的“北,南,东,西,中”五个汉字应该用英文单词,这里是作为固定参数出现的
tSize(100,100);
tVisible(true);
}
}
修改后的程序
t。
*;public class FiveButtons{
public static void main(String args[]){
Frame f = new Frame("BorderLayout");
tLayout(new BorderLayout());
d("North", new Button("North"));
d("South", new Button("South"));
d("East", new Button("East"));
d("West", new Button("West"));
d("Center", new Button("Center"));
tSize(100,100);
tVisible(true);
}
}。
。