//http://community.csdn.net/Expert/topic/3672/3672834.xml?temp=5.533999E-02
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class yanhua extends JComponent implements Runnable{
Image img; Graphics ig;
public static void main(String arg[]){
JFrame f=new JFrame("Paint");
f.setBackground(Color.black);
Container c=f.getContentPane();
Flash flash=new Flash();
c.add(flash);
f.pack();
f.show();
new Thread(flash).start();
}
public Dimension getPreferredSize(){return (new Dimension(300,300));}
public void run(){
int i,j,k; int t=15,per=20,n=t*per; int x[],y[],delay[];
x=new int[t];y=new int[t];delay=new int[t];
Color c[]=new Color[t];
try{Thread.sleep(1000);}catch(Exception e){}
Fire f[]=new Fire[n];