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

x33g5p2x  于2022-01-23 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(158)

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

Label.addMouseListener介绍

暂无

代码示例

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

Label button = new Label(parent, SWT.BORDER);
button.setToolTipText("Email Settings...");
button.setImage(SWTResourceManager.getImage(Settings.class, "settings1616.png"));
button.setBounds(494, 26, 28, 25);
button.setCursor(Display.getDefault().getCursor(SWT.CURSOR_HAND)); 
button.addMouseListener(new MouseAdapter()
{
  @Override public void mouseClicked(MouseEvent e)
  {
    // Do your thing
  }
});

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

/**
 * Initializes connections
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initConnections() {
// user code begin {1}
// user code end
getServantLabel().addMouseListener(this);
getObjectLabel().addMouseListener(this);
getInnerPanel().addMouseListener(this);
getDeactivateMenuItem().addActionListener(this);
getInspectionMenuItem().addActionListener(this);
}
/**

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

/**
 * Initializes connections
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private void initConnections() {
// user code begin {1}
// user code end
getInnerPanel().addMouseListener(this);
getRequestLabel().addMouseListener(this);
getObjectLabel().addMouseListener(this);
getRemoveMenuItem().addActionListener(this);
getInspectionMenuItem().addActionListener(this);
}
/**

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

buttonLabel = new Label(parent, SWT.NONE);
buttonLabel.setImage(theme.getUpImage());
buttonLabel.addMouseListener(new MouseAdapter() {
  @Override
  public void mouseDown(final MouseEvent mouseEvent) {

代码示例来源:origin: org.processing/core

Label label = new Label("stop");
label.setForeground(new Color(stopColor, false));
label.addMouseListener(new MouseAdapter() {
 @Override
 public void mousePressed(java.awt.event.MouseEvent e) {

代码示例来源:origin: net.imagej/ij

prefsLabel.addMouseListener(this);
addKeyListener(this);
init();

代码示例来源:origin: imagej/ImageJA

prefsLabel.addMouseListener(this);
addKeyListener(this);
init();

代码示例来源:origin: sc.fiji/3D_Viewer

label.setForeground(Color.BLUE);
if (row % 2 == 0) label.setBackground(grey);
label.addMouseListener(new MouseAdapter() {

代码示例来源:origin: net.jxta/jxta-jxse

helpLabel.setForeground(Color.black);
helpLabel.addMouseListener(new MouseAdapter() {

相关文章