关于 t.*;publicclassFiveButtons{publicstaticvoidmain(Stringargs[]){Framef=newFrame(“BorderLayout”);tLayout(newBorderLayout());d(“北”,newButton(“North”));d(“南”,newButton(“South”));d(“东”,newButton(“East”));d(“西”,newButton(“West”));d(“中”,newButton(“Center”));tSize(100,100);tVisible(true);}}的问题
你的英文与中文的地方放反了.像这样就行了.
d(“North”, new Button(“北”));
d(“South”, new Button(“南”));
d(“East”, new Button(“西”));
d(“West”, new Button(“东”));
d(“Center”, new Button(“中”));
不要绝对的相信书上的东西.它也有错的时候.