本文整理了Java中java.awt.Checkbox.getName()
方法的一些代码示例,展示了Checkbox.getName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Checkbox.getName()
方法的具体详情如下:
包路径:java.awt.Checkbox
类名称:Checkbox
方法名:getName
暂无
代码示例来源:origin: sc.fiji/Volume_Calculator
public void itemStateChanged(ItemEvent ie) {
Checkbox checkbox = (Checkbox) ie.getSource();
int parseInt = Integer.parseInt(checkbox.getName());
volumes.setCurrentColorIndex(parseInt);
}
});
代码示例来源:origin: IanDarwin/javasrc
/** This handles all the action on the button */
private void sendit() {
System.err.println("-- doing action -- ");
System.out.println("NAME: " + yournameTF.getText());
System.out.println("INSTR: " +
instrCBG.getSelectedCheckbox().getName());
System.out.println("COURSE: " +
crsCBG.getSelectedCheckbox().getName());
System.out.println("PACE: " +
paceCBG.getSelectedCheckbox().getName());
System.out.println("IMPROVE: " + improveTF.getText());
System.out.println("BESTPART: " + bestpartTF.getText());
System.out.println("SUGGESTIONS: " + commentsTA.getText());
URL url = null;
try {
url = new URL(getCodeBase(), "DailyEvalThanks.html");
} catch(MalformedURLException rsi) {
showStatus("You lose: "+rsi);
}
getAppletContext().showDocument(url);
}
}
内容来源于网络,如有侵权,请联系作者删除!