// User pushed the (one and only) button, so we exit. System.err.println("And now, byebye!"); System.exit(0);
System.err.println("In byebye::init()"); setLayout(new FlowLayout()); setFont(new Font("Helvetica", Font.PLAIN, 14)); add(b1 = new Button("Exit")); b1.addActionListener(this);