Example #1
0
  @Override
  public void uninstallUI(final JComponent c) {
    radioButton.removeMouseListener(mouseAdapter);
    radioButton.removeItemListener(itemListener);

    radioButton.setIcon(null);
    radioButton = null;

    super.uninstallUI(c);
  }
Example #2
0
 @Override
 public Object getCellEditorValue() {
   btn.removeItemListener(this);
   return btn.isSelected();
 }