javax.swing.JPopupMenu.setName()方法的使用及代码示例

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

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

JPopupMenu.setName介绍

暂无

代码示例

代码示例来源:origin: net.sf.ingenias/editor

public void mouseClicked(MouseEvent e) {
    if (SwingUtilities.isRightMouseButton(e)) {
      JPopupMenu menu = createCollectionPopupmenu(jl, dlm, cf1);
      menu.setName("listMenu" + cf.getName());
      menu.show(e.getComponent(), e.getX(), e.getY());
    }
  }
});

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
@Override
public void setName(String name) {
  super.setName(name);
}

代码示例来源:origin: stackoverflow.com

JPopupMenu popup = new JPopupMenu();
popup.setName("popup");
JMenu jMenu= new JMenu("menu");
jMenu.setName("menu");
JMenuItem menuItem1 = new JMenuItem("sub1");
jMenu.add(menuItem1);
menuItem1.addActionListener(this);
popup.add(jMenu);

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config

protected void createTablePopup() {
  $objectMap.put("tablePopup", tablePopup = new JPopupMenu());
  
  tablePopup.setName("tablePopup");
  tablePopup.setLabel("config.table.actions");
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-config

protected void createTablePopup() {
  $objectMap.put("tablePopup", tablePopup = new JPopupMenu());
  
  tablePopup.setName("tablePopup");
  tablePopup.setLabel("config.table.actions");
}

代码示例来源:origin: stackoverflow.com

JPopupMenu popup = new JPopupMenu();
popup.setName("popup");
JMenu jMenu= new JMenu("menu");
jMenu.setName("menu");
JMenuItem menuItem1 = new JMenuItem("sub1");
jMenu.add(menuItem1);
menuItem1.addActionListener(this);
popup.add(jMenu);

代码示例来源:origin: stackoverflow.com

JPopupMenu popup = new JPopupMenu();
popup.setName("popup");
JMenu jMenu= new JMenu("menu");
jMenu.setName("menu");
JMenuItem menuItem1 = new JMenuItem("sub1");
jMenu.add(menuItem1);
menuItem1.addActionListener(this);
popup.add(jMenu);

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config

protected void createTablePopup() {
  $objectMap.put("tablePopup", tablePopup = new JPopupMenu());
  
  tablePopup.setName("tablePopup");
  tablePopup.setLabel(t("config.table.actions"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

protected void createPopup() {
  $objectMap.put("popup", popup = new JPopupMenu());
  
  popup.setName("popup");
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuCanceled", this, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeInvisible", this, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget

protected void createPopup() {
  popup = new javax.swing.JPopupMenu();
  $objectMap.put("popup", popup);
  popup.setName("popup");
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuCanceled", $Table0, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuWillBecomeInvisible", $Table0, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget

protected void createPopup() {
  popup = new javax.swing.JPopupMenu();
  $objectMap.put("popup", popup);
  popup.setName("popup");
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuCanceled", $JPanel0, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuWillBecomeInvisible", $JPanel0, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

protected void createPopup() {
  $objectMap.put("popup", popup = new JPopupMenu());
  
  popup.setName("popup");
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuCanceled", this, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeInvisible", this, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget

protected void createPopup() {
  popup = new javax.swing.JPopupMenu();
  $objectMap.put("popup", popup);
  popup.setName("popup");
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuCanceled", content, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuWillBecomeInvisible", content, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

protected void createPopup() {
  $objectMap.put("popup", popup = new JPopupMenu());
  
  popup.setName("popup");
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuCanceled", this, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeInvisible", this, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-i18n

protected void createPopup() {
  $objectMap.put("popup", popup = new JPopupMenu());
  
  popup.setName("popup");
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuCanceled", this, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeInvisible", this, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

protected void createPopup() {
  $objectMap.put("popup", popup = new JPopupMenu());
  
  popup.setName("popup");
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuCanceled", this, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeInvisible", this, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

protected void createPopup() {
  $objectMap.put("popup", popup = new JPopupMenu());
  
  popup.setName("popup");
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuCanceled", this, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeInvisible", this, "doPopupMenuWillBecomeInvisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets

protected void createPopup() {
  $objectMap.put("popup", popup = new JPopupMenu());
  
  popup.setName("popup");
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuCanceled", this, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeInvisible", this, "doPopupMenuWillBecomeInvisible__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeVisible", this, "doPopupMenuWillBecomeVisible__on__popup"));
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-runtime-swing-widget

protected void createPopup() {
  popup = new javax.swing.JPopupMenu();
  $objectMap.put("popup", popup);
  popup.setName("popup");
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuCanceled", $JPanel0, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuWillBecomeInvisible", $JPanel0, "doPopupMenuWillBecomeInvisible__on__popup"));
  popup.addPopupMenuListener((javax.swing.event.PopupMenuListener) jaxx.runtime.Util.getEventListener(javax.swing.event.PopupMenuListener.class, "popupMenuWillBecomeVisible", $JPanel0, "doPopupMenuWillBecomeVisible__on__popup"));
}

代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-number

protected void createPopup() {
  $objectMap.put("popup", popup = new JPopupMenu());
  
  popup.setName("popup");
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuCanceled", this, "doPopupMenuCanceled__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeInvisible", this, "doPopupMenuWillBecomeInvisible__on__popup"));
  popup.addPopupMenuListener(JAXXUtil.getEventListener(PopupMenuListener.class, "popupMenuWillBecomeVisible", this, "doPopupMenuWillBecomeVisible__on__popup"));
}

相关文章

JPopupMenu类方法