A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://plugins.jetbrains.com/docs/intellij/radio-button.html below:

Radio Button | IntelliJ Platform Plugin SDK

Radio Button When to use

Use a radio button group to choose one option from 2 to 4 mutually exclusive options.

When not to use Several options in a group can be selected

Use a group of checkboxes instead.

Binary Yes/No Options

For only two opposing yes/no options, use a checkbox instead.

5 and more options

If the options have short labels, use a segmented button. Or, if the options can be represented on an axis, such as a time delay, use a slider instead.

For other cases with 5 or more options use a drop-down list:

Use dropdown

Consider using a drop-down list if:

How to use Label

To implement this, use HTML formatting:

radioButton( "<html>Show options before adding<br>to version control</html>")

new JRadioButton( "<html>Show options before adding<br>to version control</html>");

Writing guidelines

Use sentence-style capitalization.

Do not use ending punctuation.

Use the imperative form of verbs.

Do not use negation in labels as it complicates understanding.

Make labels short and intelligible — see Writing short and clear text.

Group label

Always start a radio button group with a group label. It explains what the options are for.

Use a checkbox or another radio button as a group label if the radio button group needs to be turned on or off.

Use a colon at the end of a group label.

Sizes and placement

If a radio button group depends on another control, e.g., a checkbox, follow the rules for dependent colors. Otherwise, follow the rules for independent colors.

24 January 2025


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4