//«Cµì.java import java.awt.*; import java.awt.event.*; class «Cµì implements ActionListener { String name; static Button a, b = new Button("bbb"); int k = 0; void jump(int kk) { System.out.println(name + ": " + kk); } public static void main(String xx[ ]) { Frame f = new Frame("2008"); f.setSize(200,300); Panel p = new Panel( ); f.setVisible(true); // f.show( ); p.add(b); f.add(p, "North"); a = new Button("aaa"); f.add(a, "West"); f.validate( ); «Cµì gg = new «Cµì( "¤p¥Õ " ); b.addActionListener(gg); } public void actionPerformed(ActionEvent ae) { ++k; switch(k) { case 1: a.setBackground(Color.blue); break; case 2: a.setBackground(Color.pink); break; case 3: a.setBackground(Color.red); break; default: System.exit(0); } // switch } // actionPerformed public «Cµì( String yy) { // constructor name = yy; System.out.println("«Cµì " + name + " started..."); } } // class