ADD file via upload

javaBean
nxist2202005087 1 year ago
parent e942823b92
commit 5f32ed7f6c

@ -0,0 +1,26 @@
package JavaBean;
import java.awt.*;
public class Pointercxs {
private int i=0;//第几行
private int j=0;//几列
private int x=0;//x坐标
private int y=0;//y坐标
private int h=36;//指示器的高
public Pointercxs(int i, int j, int x, int y){
this.i=i;
this.j=j;
this.x=x;
this.y=y;
}
public void draw(Graphics p){
p.setColor(new Color(255,0,0));
p.drawRect(x-h/2,y-h/2,h,h);
}
}
Loading…
Cancel
Save