本文整理了Java中javax.swing.JMenu.setActionCommand()
方法的一些代码示例,展示了JMenu.setActionCommand()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenu.setActionCommand()
方法的具体详情如下:
包路径:javax.swing.JMenu
类名称:JMenu
方法名:setActionCommand
暂无
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
if (startMenu[i] == null) {
startMenu[i] = new JMenu(deb + " ...");
startMenu[i].setActionCommand("menu" + deb);
add(startMenu[i]);
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
menu.setActionCommand ("File");
menu.setMnemonic ((int)'F');
makeMenuButton ("New", "Create a new document", "New", 'N', KeyStroke.getKeyStroke (KeyEvent.VK_N, Event.CTRL_MASK), toolbar, menu);
menu.setActionCommand ("Edit");
menu.setMnemonic ((int)'E');
makeMenuButton ("Cut", "Cut the selection and put it on the Clipboard", "Cut", 'T', KeyStroke.getKeyStroke (KeyEvent.VK_X, Event.CTRL_MASK), toolbar, menu);
menu.setActionCommand ("Filter");
menu.setMnemonic ((int)'F');
menubar.add (menu);
menu.setActionCommand ("Operation");
menu.setMnemonic ((int)'r');
item = new JMenuItem ();
menu.setActionCommand ("Help");
menu.setMnemonic ((int)'H');
item = new JMenuItem ("Filtering");
代码示例来源:origin: digital-preservation/droid
jMenuFile.setActionCommand("file");
jMenuFile.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuEdit.setActionCommand("edit");
jMenuEdit.addMenuListener(new javax.swing.event.MenuListener() {
public void menuCanceled(javax.swing.event.MenuEvent evt) {
jMenuRun.setActionCommand("run");
jMenuReport.setActionCommand("report");
jhelp.setActionCommand("help");
代码示例来源:origin: uk.gov.nationalarchives/droid-ui
jMenuFile.setActionCommand("file");
jMenuFile.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuEdit.setActionCommand("edit");
jMenuEdit.addMenuListener(new javax.swing.event.MenuListener() {
public void menuCanceled(javax.swing.event.MenuEvent evt) {
jMenuRun.setActionCommand("run");
jMenuReport.setActionCommand("report");
jhelp.setActionCommand("help");
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
m_selectFont.setActionCommand("Select Font");
m_autoScale = new JMenuItem("Auto Scale");
m_autoScale.setActionCommand("Auto Scale");
代码示例来源:origin: Waikato/weka-trunk
m_selectFont.setActionCommand("Select Font");
m_autoScale = new JMenuItem("Auto Scale");
m_autoScale.setActionCommand("Auto Scale");
代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable
m_selectFont.setActionCommand("Select Font");
m_autoScale = new JMenuItem("Auto Scale");
m_autoScale.setActionCommand("Auto Scale");
代码示例来源:origin: Waikato/weka-trunk
m_selectFont.setActionCommand("Select Font");
m_autoScale = new JMenuItem("Auto Scale");
m_autoScale.setActionCommand("Auto Scale");
内容来源于网络,如有侵权,请联系作者删除!