1. Yes, your class ko11_1 override this method. 这个方法是程序启动时自动运行的, 不可以改名。2. 位置是由 LayoutManager决定的, applet的 default layout 是 FlowLayout.3. actionPerformed 是事件发生时调用的函数,button1.addActionListener(this);
button2.addActionListener(this);告诉系统click button1, button2是调用该函数。4. 跟书写顺序无关。建议你多看一些java基础书。
button2.addActionListener(this);告诉系统click button1, button2是调用该函数。4. 跟书写顺序无关。建议你多看一些java基础书。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货