import javax.swing.Icon;
import javax.swing.JCheckBox;
import javax.swing.JPanel;
public class JCheckBoxGroup extends JPanel{
private JCheckBox[] checkboxgroup;
private String[] texts;
private Icon[] icons;
private boolean isHorizontal;
/**
* @param texts
* @param icons
* @param isHorizontal
*/
public JCheckBoxGroup(String[] texts, Icon[] icons, boolean isHorizontal) {
this.texts = texts;
this.icons = icons;
this.isHorizontal = isHorizontal;
}
}
import javax.swing.JCheckBox;
import javax.swing.JPanel;
public class JCheckBoxGroup extends JPanel{
private JCheckBox[] checkboxgroup;
private String[] texts;
private Icon[] icons;
private boolean isHorizontal;
/**
* @param texts
* @param icons
* @param isHorizontal
*/
public JCheckBoxGroup(String[] texts, Icon[] icons, boolean isHorizontal) {
this.texts = texts;
this.icons = icons;
this.isHorizontal = isHorizontal;
}
}