There's no way to make it fire the event only when the menu item is selected, but you have the following option:
In the stateChanged() method implemented in the ChangeListener object sent as a parameter to yourMenuItem.addChangeListener() method, check for that menu item's isArmed() and...
Create a new class that extends DefaultTableCellRenderer and override its getTableCellRendererComponent method,
class NoSelectionBorderCellRenderer extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(<parameters>) {
Component comp =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.