List of usage examples for javax.swing JCheckBox removeActionListener
public void removeActionListener(ActionListener l)
ActionListener
from the button. From source file:de.mprengemann.intellij.plugin.androidicons.dialogs.IconImporter.java
private void updateExportResolutions() { final Set<Resolution> resolutions = controller.getExportResolutions(); for (JCheckBox checkBox : Arrays.asList(LDPICheckBox, MDPICheckBox, HDPICheckBox, XHDPICheckBox, XXHDPICheckBox, XXXHDPICheckBox, TVDPICheckBox)) { checkBox.removeActionListener(resolutionActionListener); final Resolution resolution = ((ResolutionButtonModel) checkBox.getModel()).getResolution(); checkBox.setSelected(resolutions.contains(resolution)); checkBox.addActionListener(resolutionActionListener); }//from w w w. j a v a 2 s . c om }