摘要: 代码:Example9_8.javapublic class Example9_8{ public static void main(String args[]){ WindowOperation win = new WindowOperation(); win.setBounds(100,100,390,360); win.setTitle("简单计算器"); }}WindowOperation.javaimport java.awt.*;import javax.swing.*;import java.io.*;public class WindowOperation 阅读全文
posted @ 2013-05-30 22:27 同学少年 阅读(958) 评论(0) 推荐(0) 编辑
摘要: 代码:Example9_7.javapublic class Example9_7{ public static void main(String args[]){ WindowActionEvent win= new WindowActionEvent(); PoliceListen police = new PoliceListen();//创建监视器 win.setMyCommandListener(police); win.setBounds(100,100,460,360); win.setTitle("处理ActionEvent事件"); }}WindowAct 阅读全文
posted @ 2013-05-30 22:16 同学少年 阅读(495) 评论(0) 推荐(0) 编辑