javax.swing.JMenu.setActionCommand()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(171)

本文整理了Java中javax.swing.JMenu.setActionCommand()方法的一些代码示例,展示了JMenu.setActionCommand()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenu.setActionCommand()方法的具体详情如下:
包路径:javax.swing.JMenu
类名称:JMenu
方法名:setActionCommand

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");

相关文章