本文整理了Java中java.awt.Checkbox.setCheckboxGroup()
方法的一些代码示例,展示了Checkbox.setCheckboxGroup()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Checkbox.setCheckboxGroup()
方法的具体详情如下:
包路径:java.awt.Checkbox
类名称:Checkbox
方法名:setCheckboxGroup
暂无
代码示例来源:origin: stackoverflow.com
frm.setLayout(new FlowLayout());
CheckboxGroup cg = new CheckboxGroup();
cb1.setCheckboxGroup(cg);
cb2.setCheckboxGroup(cg);
cb3.setCheckboxGroup(cg);
cb1.addItemListener(new ItmLis());
cb2.addItemListener(new ItmLis());
代码示例来源:origin: sc.fiji/Threshold_Colour
filterTypeH = new CheckboxGroup();
bandPassH = new Checkbox("Pass");
bandPassH.setCheckboxGroup(filterTypeH);
bandPassH.addItemListener(this);
panelh.add(bandPassH);
bandStopH = new Checkbox("Stop");
bandStopH.setCheckboxGroup(filterTypeH);
bandStopH.addItemListener(this);
panelh.add(bandStopH);
filterTypeS = new CheckboxGroup();
bandPassS = new Checkbox("Pass");
bandPassS.setCheckboxGroup(filterTypeS);
bandPassS.addItemListener(this);
panels.add(bandPassS);
bandStopS = new Checkbox("Stop");
bandStopS.setCheckboxGroup(filterTypeS);
bandStopS.addItemListener(this);
panels.add(bandStopS);
filterTypeB = new CheckboxGroup();
bandPassB = new Checkbox("Pass");
bandPassB.setCheckboxGroup(filterTypeB);
bandPassB.addItemListener(this);
panelb.add(bandPassB);
bandStopB = new Checkbox("Stop");
bandStopB.setCheckboxGroup(filterTypeB);
bandStopB.addItemListener(this);
panelb.add(bandStopB);
代码示例来源:origin: sc.fiji/Image_5D
final Panel p = new Panel(new BorderLayout());
channelActive[i] = new Checkbox();
channelActive[i].setCheckboxGroup(channelActiveGroup);
channelActive[i].addItemListener(this);
p.add(channelActive[i], BorderLayout.WEST);
代码示例来源:origin: IanDarwin/javasrc
crsCBG = new CheckboxGroup();
p.add(Checkbox1);
Checkbox1.setCheckboxGroup(crsCBG);
p.add(Checkbox2);
Checkbox2.setCheckboxGroup(crsCBG);
p.add(Checkbox3);
Checkbox3.setCheckboxGroup(crsCBG);
p.add(Checkbox4);
Checkbox4.setCheckboxGroup(crsCBG);
p.add(Checkbox5);
Checkbox5.setCheckboxGroup(crsCBG);
crsCBG.setSelectedCheckbox(Checkbox1);
add(p);
instrCBG = new CheckboxGroup();
p.add(Checkbox11);
Checkbox11.setCheckboxGroup(instrCBG);
p.add(Checkbox21);
Checkbox21.setCheckboxGroup(instrCBG);
p.add(Checkbox31);
Checkbox31.setCheckboxGroup(instrCBG);
p.add(Checkbox41);
Checkbox41.setCheckboxGroup(instrCBG);
p.add(Checkbox51);
Checkbox51.setCheckboxGroup(instrCBG);
instrCBG.setSelectedCheckbox(Checkbox11);
add(p);
内容来源于网络,如有侵权,请联系作者删除!