use of com.intellij.ui.components.JBRadioButton in project intellij-community by JetBrains.
the class IdeaGradleProjectSettingsControlBuilder method addGradleChooserComponents.
@Override
public IdeaGradleProjectSettingsControlBuilder addGradleChooserComponents(PaintAwarePanel content, int indentLevel) {
ButtonGroup buttonGroup = new ButtonGroup();
if (!dropUseWrapperButton) {
myUseWrapperButton = new JBRadioButton(GradleBundle.message("gradle.settings.text.use.default_wrapper.configured"));
myUseWrapperButton.addActionListener(myActionListener);
buttonGroup.add(myUseWrapperButton);
content.add(myUseWrapperButton, ExternalSystemUiUtil.getFillLineConstraints(indentLevel));
}
if (!dropCustomizableWrapperButton) {
myUseWrapperWithVerificationButton = new JBRadioButton(GradleBundle.message("gradle.settings.text.use.customizable_wrapper"));
myUseWrapperWithVerificationButton.addActionListener(myActionListener);
myUseWrapperVerificationLabel = new JBLabel(GradleBundle.message("gradle.settings.text.wrapper.customization.compatibility"));
myUseWrapperVerificationLabel.setFont(UIUtil.getLabelFont(UIUtil.FontSize.MINI));
myUseWrapperVerificationLabel.setIcon(UIUtil.getBalloonInformationIcon());
buttonGroup.add(myUseWrapperWithVerificationButton);
content.add(myUseWrapperWithVerificationButton, ExternalSystemUiUtil.getLabelConstraints(indentLevel));
content.add(myUseWrapperVerificationLabel, ExternalSystemUiUtil.getFillLineConstraints(indentLevel));
}
if (!dropUseLocalDistributionButton) {
myUseLocalDistributionButton = new JBRadioButton(GradleBundle.message("gradle.settings.text.use.local.distribution"));
myUseLocalDistributionButton.addActionListener(myActionListener);
buttonGroup.add(myUseLocalDistributionButton);
content.add(myUseLocalDistributionButton, ExternalSystemUiUtil.getFillLineConstraints(indentLevel));
}
if (!dropUseBundledDistributionButton) {
myUseBundledDistributionButton = new JBRadioButton(GradleBundle.message("gradle.settings.text.use.bundled.distribution", GradleVersion.current().getVersion()));
myUseBundledDistributionButton.addActionListener(myActionListener);
buttonGroup.add(myUseBundledDistributionButton);
//content.add(Box.createGlue(), ExternalSystemUiUtil.getFillLineConstraints(indentLevel));
content.add(myUseBundledDistributionButton, ExternalSystemUiUtil.getFillLineConstraints(indentLevel));
}
return this;
}
use of com.intellij.ui.components.JBRadioButton in project intellij-community by JetBrains.
the class IpnbConfigurable method createModeRadioButton.
@NotNull
private static JBRadioButton createModeRadioButton(@NotNull String text) {
final JBRadioButton local = new JBRadioButton(text);
local.setFocusable(false);
local.setBorder(null);
return local;
}
Aggregations