javax.swing.JLabel.getName()方法的使用及代码示例

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

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

JLabel.getName介绍

暂无

代码示例

代码示例来源:origin: dcaoyuan/nbscala

@Override
public String getName() {
  String name = super.getName();
  return name == null ? "ComboBox.renderer" : name; // NOI18N
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-ruby-platform

public @Override String getName() {
    String name = super.getName();
    return name == null ? "ComboBox.renderer" : name;  // NOI18N
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

@Override
public String getName() {
  String name = super.getName();
  return name == null ? "ComboBox.renderer" : name; // NOI18N
}

代码示例来源:origin: org.gephi/directory-chooser

@Override
public String getName() {
  String name = super.getName();
  return name == null ? "ComboBox.renderer" : name;  // NOI18N
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

@Override
  public String getName() {
    String name = super.getName();
    return name == null ? "ComboBox.renderer" : name;  // NOI18N
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

@Override
  public String getName() {
    String name = super.getName();
    return name == null ? "ComboBox.renderer" : name; // NOI18N
  }
}

代码示例来源:origin: org.gephi/directory-chooser

@Override
  public String getName() {
    String name = super.getName();
    return name == null ? "ComboBox.renderer" : name;  // NOI18N
  }
} // end of DirectoryComboBoxRenderer

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui

@Override
public String getName() {
  String name = super.getName();
  return name == null ? "ComboBox.renderer" : name;  // NOI18N
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-ruby-platform

public @Override String getName() {
    String name = super.getName();
    return name == null ? "ComboBox.renderer" : name;  // NOI18N
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

@Override
  public String getName() {
    String name = super.getName();
    return name == null ? "ComboBox.renderer" : name; // NOI18N
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

@Override
public String getName() {
  String name = super.getName();
  return name == null ? "ComboBox.renderer" : name;  // NOI18N
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-php-project

@Override
  public String getName() {
    String name = super.getName();
    return name == null ? "ComboBox.renderer" : name; // NOI18N
  }
}

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

class MyMouseListener extends MouseAdapter {

  @Override
  public void mouseClicked(MouseEvent e) {
     JLabel l = (JLabel) e.getSource();

     if(l.getName().equals("name01"))
       doSomething01();
     else if(l.getName().equals("name02"))
       doSomething02();
  }
}

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

public void mousePressed(MouseEvent e)
{
  JLabel label = (JLabel)e.getSource();
  if(label.getName().equalsIgnoreCase("World Label"))
  {
    System.out.println("Hello World!!");
  }
}
public void mouseEntered(MouseEvent e){}
public void mouseExited(MouseEvent e){}
public void mouseReleased(MouseEvent e){}
public void mouseClicked(MouseEvent e){}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

private void configurarAcaoAjudarDesenvolvimento()
{
  Action acao = new AbstractAction(rotuloAjudarDesenvolvimento.getName())
  {
    @Override
    public void actionPerformed(ActionEvent e)
    {
      abrirGitHub();
    }
  };
  getActionMap().put(rotuloAjudarDesenvolvimento.getName(), acao);
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

private void configurarAcaoRelatarBug()
{
  Action acao = new AbstractAction(rotuloRelatarBug.getName())
  {
    @Override
    public void actionPerformed(ActionEvent e)
    {
      PortugolStudio.getInstancia().getTelaRelatarBug().setVisible(true);
    }
  };
  getActionMap().put(rotuloRelatarBug.getName(), acao);
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

private void configurarAcaoExibirTelaSobre()
{
  Action acao = new AbstractAction(rotuloInformacoesSoftware.getName())
  {
    @Override
    public void actionPerformed(ActionEvent e)
    {
      PortugolStudio.getInstancia().getTelaSobre().setVisible(true);
    }
  };
  getActionMap().put(rotuloInformacoesSoftware.getName(), acao);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib

public JLabel getCellByName(String name) {
  Iterator i = cellList.iterator();
  while (i.hasNext()) {
    JLabel c = (JLabel)i.next();
    if (name.equals(c.getName())) {
      return c;
    }
  }
  return null;
}

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

@ScriptFunction(jsDoc = JS_NAME_DOC)
@Override
public String getName() {
  return super.getName();
}

代码示例来源:origin: UNIVALI-LITE/Portugol-Studio

@Override
  public void mouseClicked(MouseEvent e)
  {
    WebConnectionUtils.abrirSite(rotulo.getName());
  }
});

相关文章

JLabel类方法