Hi Coders!
take a look:
[code]
JButton a = new JButon("A");
JButton b= new JButon("B");
// .....
a.setActionCommand("A");
b.setActionCommand("B");
//......
if(if source.getCommandAction() == "A"){
// its A
}else
if{ source.getCommandAction() == "B")
// its B
}
how can i do the same or semilar determine action with more than one JList and only one listener???
Thanks
[This message has been edited by Shay Gaghe (edited November 14, 2001).]
take a look:
[code]
JButton a = new JButon("A");
JButton b= new JButon("B");
// .....
a.setActionCommand("A");
b.setActionCommand("B");
//......
if(if source.getCommandAction() == "A"){
// its A
}else
if{ source.getCommandAction() == "B")
// its B
}
how can i do the same or semilar determine action with more than one JList and only one listener???
Thanks
[This message has been edited by Shay Gaghe (edited November 14, 2001).]