excellent, thanks very much to you both !!
but i have a few questions if you have the time . .
you (lookingLost) seem to suggest that this isn't an ideal solution, why might it better to do things another way ? . . but maybe you just felt like calling the class labelMadness !
also could you please explain what is happening here, ive never seen a construction like this.
Code:
this.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent m){
selectedComponent=getComponentAt(m.getX(),m.getY());
System.out.println(selectedComponent.getName());
}
}
);
thanks again
