File: RadioButtonGroup.java

package info (click to toggle)
gpsprune 26.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,824 kB
  • sloc: java: 52,154; sh: 25; makefile: 21; python: 15
file content (18 lines) | stat: -rw-r--r-- 339 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package tim.prune.gui;

import javax.swing.ButtonGroup;
import javax.swing.JRadioButton;

/** Simple button group for radio buttons */
public class RadioButtonGroup extends ButtonGroup
{
	public RadioButtonGroup(JRadioButton ... buttons)
	{
		for (JRadioButton button : buttons)
		{
			if (button != null) {
				add(button);
			}
		}
	}
}