public class JaMous2 extends Applet implements MouseListener,MouseMotionListener{ int [] x = new int[100]; int [] y = new int[100]; int x1=-1; int y1; int count, i;
//リスナの登録 public void init(){ addMouseListener(this); addMouseMotionListener(this); count = 0; }
public class JaMous2 extends Applet implements MouseListener,MouseMotionListener{
int [] x = new int[100];
int [] y = new int[100];
int x1=-1;
int y1;
int count, i;
int lineX = 0;
int lineY = 0;
Label label;
//リスナの登録
public void init(){
addMouseListener(this);
addMouseMotionListener(this);
count = 0;
// マウスの座標を表示するラベル
label = new Label("x:xxxx, y:yyyy", Label.CENTER);
add(label);
}