Example usage for javax.swing JCheckBox removeActionListener

List of usage examples for javax.swing JCheckBox removeActionListener

Introduction

In this page you can find the example usage for javax.swing JCheckBox removeActionListener.

Prototype

public void removeActionListener(ActionListener l) 

Source Link

Document

Removes an ActionListener from the button.

Usage

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
}