黑马11期李项京 发表于 2012-6-2 14:01 伯阳兄:请看代码,不懂再问我哈: import javax.swing.*; import java.awt.event.*;
张洁 发表于 2012-6-2 14:23 学艺不精。小妹说点自己的理解哈~ 楼主的代码,在监听到的事件处理public void actionPerformed(ActionEven ...
刘伯阳 发表于 2012-6-2 14:11 京兄:你写的表现形式看起来是那样,不过你是只对JButton a进行监听,然后if判断。我想要的是点了个a之后 ...
黑马11期李项京 发表于 2012-6-2 14:36 你是想弹出新的窗口?
黑马11期李项京 发表于 2012-6-2 14:44 按照你的意思又改了一下 import javax.swing.*; import java.awt.event.*;