用java编写的网络游鱼 高分追加

来源:百度知道 编辑:UC知道 时间:2024/06/17 04:54:33
我们要做一个java程序,,就是网络游鱼,,是一种屏保,,网络上这种资料很少,,请问谁有这方面的知识或者源代码,,可以给我提供资料,最后可以追加分数!

import java.text.*;
import java.awt.*;
import javax.swing.*;
import java.awt.geom.*;
import java.util.*;
import java.awt.event.*;
/*
* ScreenTest.java
*
* Created on 2006年7月6日, 下午5:23
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

/**
*
* @author kollice
*/
public class ScreenTest extends JPanel implements Runnable{

/** Creates a new instance of ScreenTest */
private String time;
private Rectangle2D rd;
private int x,y,a,b;//座标值和方向值
private int rgb=0;//颜色的值
private Color color;//字体的颜色
private int width,height;//屏幕的大小
public ScreenTest(int width,int height) {
this.width=width;
this.height=height;
initWindow();
}
private void initWindow(){
x=(int)(Math.random()*300);