アットウィキロゴ

pplr0815

import java.awt.*;
import java.awt.event.*;
class apple0815 extends Frame {
    public static void main(String [] args) {
        Frame f=new apple0815();
        f.setTitle("apple0815");
        f.setSize(500,500);
        f.setBackground(Color.yellow);        
        f.setVisible(true);
    }

apple0815(){addWindowListener(new stopwin());}
class stopwin extends WindowAdapter{
    public void windowClosing(WindowEvent we){System.exit(0);}
    }

public void paint(Graphics g){
g.setColor(Color.blue);  
g.drawRect(100,100,100,100);
  }
}
最終更新:2010年09月14日 16:40