摘要:
代码: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 阅读全文
摘要:
代码: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 阅读全文