Thanks, i shoukd have supplied some codes, the code looks llike this:
class Tile extends JComponent{
int w, h;
Point p;
String l, s;
Tile(String l, String s){
this.l = l;
this.s = s;
w = 25;
h = 25;
p = new Point(0,0);
addMouseMotionListener(new MouseMotionAdapter() {
public void...