java.awt.Panel.addMouseListener()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(598)

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

Panel.addMouseListener介绍

暂无

代码示例

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Initializes connections
  3. */
  4. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  5. private void initConnections() {
  6. // user code begin {1}
  7. // user code end
  8. this.addWindowListener(this);
  9. this.addComponentListener(this);
  10. getWorkPanel().addMouseListener(this);
  11. }
  12. /**

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

  1. p1.setLayout(new GridLayout(2, 1, 0, 0));
  2. getContentPane().add(p1);
  3. p1.addMouseListener(this);
  4. p1.add(pane);

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Initializes connections
  3. */
  4. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  5. private void initConnections() {
  6. // user code begin {1}
  7. // user code end
  8. getServantLabel().addMouseListener(this);
  9. getObjectLabel().addMouseListener(this);
  10. getInnerPanel().addMouseListener(this);
  11. getDeactivateMenuItem().addActionListener(this);
  12. getInspectionMenuItem().addActionListener(this);
  13. }
  14. /**

代码示例来源:origin: org.jacorb/jacorb

  1. /**
  2. * Initializes connections
  3. */
  4. /* WARNING: THIS METHOD WILL BE REGENERATED. */
  5. private void initConnections() {
  6. // user code begin {1}
  7. // user code end
  8. getInnerPanel().addMouseListener(this);
  9. getRequestLabel().addMouseListener(this);
  10. getObjectLabel().addMouseListener(this);
  11. getRemoveMenuItem().addActionListener(this);
  12. getInspectionMenuItem().addActionListener(this);
  13. }
  14. /**

相关文章