This section illustrates you how to create radio button.
In SWT, the style RADIO defined in the Button class allows to create radio button. We have create an array object of Button class. The class Label displays the specified string. The method label.setText() sets the string specified. The setBounds() sets the location.
The method radioButton.setSelection(true) sets the selection state.
Here is the code of RadioButtonExample.java
Output will be displayed as:
Ask your questions, our development team will try to give answers to your questions.