import java.awt.*;
import java.awt.event.*;
class pro0617 extends Frame implements ActionListener{
Button bu;
public static void main( String[] args ) {
pro0617 f=new pro0617("pro0617");
f.buhin();
f.show();
}
pro0617(String s){
super(s);
setSize(600,600);
addWindowListener(
new stopwin());
}
void buhin(){
Button bu = new Button( "
ボタン" );
add(bu);
bu.addActionListener(this);
}
public void actionPerformed( ActionEvent e ) {
System.out.println("[[asahi]]");
}
}
class stopwin extends WindowAdapter{
public void windowClosing(WindowEvent we){System.exit(0);}
}
最終更新:2010年09月17日 19:12