List of usage examples for com.intellij.openapi.ui LabeledComponent setEnabled
@Override
public void setEnabled(boolean enabled)
From source file:org.jetbrains.plugins.ruby.ruby.run.confuguration.RubyRunConfigurationUIUtil.java
License:Apache License
public static void addAlternativeSDKActionListener(final JCheckBox useAlternativeSdkCB, final LabeledComponent alternativeSdksComponent, final JComboBox modulesComboBox) { useAlternativeSdkCB.addActionListener(new ActionListener() { @Override/*from w w w.ja v a2 s. com*/ public void actionPerformed(final ActionEvent e) { final boolean useAlternativeSDK = useAlternativeSdkCB.isSelected(); alternativeSdksComponent.setEnabled(useAlternativeSDK); modulesComboBox.setEnabled(!useAlternativeSDK); } }); }