アットウィキロゴ

apple0813

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

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

public void paint(Graphics g){
int n;
g.setColor(Color.blue);  
for (n=1;n<11;n++){  
g.drawLine(10*n,10*n,50,200);
}
  }
}
最終更新:2010年09月14日 16:12