i cant explain any better than this..
i have lots of components like buttons and labels that has the same Listener, now i want the listener to tell me what kind of source he got (JButton or...
Type: Posts; User: xchan
i cant explain any better than this..
i have lots of components like buttons and labels that has the same Listener, now i want the listener to tell me what kind of source he got (JButton or...
I want to do is:
if the source is a JLabel then....
and if the source is a JButton then....
but:
MouseListener mL = new MouseAdapter(){
@Override
public void...