posted 23 years ago
hey guys! how can i capture the state of the radio button, I mean whether it is clicked or not. I am constructing it with the constructor. the code is as follows.......
JRadioButton selection = JRadioButton("example",false);
selection.addMouseListener(new GridListener());
public class GridListener extends MouseAdapter{
public void mousePressed(MouseEvent e){
_____________________
}
}
Thanks in advance..........