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

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

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

JLabel.setName介绍

暂无

代码示例

代码示例来源:origin: magefree/mage

lblLife.setName("lblLife"); // NOI18N
lblLibrary.setName("lblLibrary"); // NOI18N
lblHand.setName("lblHand"); // NOI18N
txtLife.setName("txtLife"); // NOI18N
txtLibrary.setName("txtLibrary"); // NOI18N
txtHand.setName("txtHand"); // NOI18N
lblGrave.setName("lblGrave"); // NOI18N

代码示例来源:origin: magefree/mage

lblFastConnect.setLabelFor(btnFindMain);
lblFastConnect.setText("Connect to:");
lblFastConnect.setName(""); // NOI18N

代码示例来源:origin: dboissier/mongo4idea

feedbackLabel.setName("feedbackLabel");
settingTabbedPane.setName("tabbedSettings");
));
passLabel.setName("passLabel");
sshAuthenticationMethodComboBox.setSelectedItem(AuthenticationMethod.PRIVATE_KEY);
sshAuthenticationMethodComboBox.addItemListener(e -> {

代码示例来源:origin: ron190/jsql-injection

labelTab.setName(keyLabel);
labelTab.addMouseListener(new MouseAdapter() {
  @Override

代码示例来源:origin: kaklakariada/portmapper

private static JLabel createLabel(final String postfix) {
  final String completeName = DIALOG_NAME + "." + postfix;
  final JLabel newLabel = new JLabel(completeName);
  newLabel.setName(completeName);
  return newLabel;
}

代码示例来源:origin: kaklakariada/portmapper

private static JLabel createLabel(final String name) {
  final JLabel newLabel = new JLabel(name);
  newLabel.setName(name);
  return newLabel;
}

代码示例来源:origin: kaklakariada/portmapper

private JLabel createLabel(final String name) {
    final JLabel newLabel = new JLabel(name);
    newLabel.setName(name);
    return newLabel;
  }
}

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

protected void createTitle() {
  $objectMap.put("title", title = new JLabel());
  
  title.setName("title");
  title.setHorizontalAlignment(0);
}

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

protected void createTitle() {
  title = new javax.swing.JLabel();
  $objectMap.put("title", title);
  title.setName("title");
  title.setHorizontalAlignment(0);
}

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

protected void createLabel() {
  $objectMap.put("label", label = new JLabel());
  
  label.setName("label");
  label.setOpaque(false);
}

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

protected void createPopupSortLabel() {
  $objectMap.put("popupSortLabel", popupSortLabel = new JLabel());
  
  popupSortLabel.setName("popupSortLabel");
  popupSortLabel.setText(t("bean.sort.label"));
}

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

protected void createLabelH() {
  $objectMap.put("labelH", labelH = new JLabel());
  
  labelH.setName("labelH");
  labelH.setHorizontalAlignment(0);
  labelH.setText(t("timeeditor.H"));
}

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

protected void createLatitudeLabel() {
  $objectMap.put("latitudeLabel", latitudeLabel = new JLabel());
  
  latitudeLabel.setName("latitudeLabel");
  latitudeLabel.setText(t("jaxx.common.latitude"));
}

代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-core

/**
 * Sets the name of the title label to
 * <code>&lt;name&gt;-{@value #TITLE_NAME}</code>, with &lt;name&gt; being
 * the name of the component.
 */
@Override
public void setName(String name) {
  super.setName(name);
  titleLabel.setName(format("%s-%s", name, TITLE_NAME));
}

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

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

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

protected void createPopupLabel() {
  popupLabel = new javax.swing.JLabel();
  $objectMap.put("popupLabel", popupLabel);
  popupLabel.setName("popupLabel");
  popupLabel.setEnabled(false);
  popupLabel.setText(_("i18neditor.empty.locales"));
}

代码示例来源:origin: fr.ifremer/isis-fish

protected void createNumberOfTrips() {
  $objectMap.put("numberOfTrips", numberOfTrips = new JLabel());
  
  numberOfTrips.setName("numberOfTrips");
  numberOfTrips.putClientProperty("sensitivityBean", fr.ifremer.isisfish.entities.StrategyMonthInfoImpl.class);
  numberOfTrips.putClientProperty("sensitivityMethod", "NumberOfTrips");
}

代码示例来源:origin: org.apache.jmeter/ApacheJMeter_core

/**
 * Initialize the GUI components and layout.
 */
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
  setLayout(new BorderLayout(5, 0));
  // The label for the text field.
  JLabel nameLabel = new JLabel(JMeterUtils.getResString("name")); // $NON-NLS-1$
  nameLabel.setName("name");
  nameLabel.setLabelFor(nameField);
  add(nameLabel, BorderLayout.WEST);
  add(nameField, BorderLayout.CENTER);
}

代码示例来源:origin: com.github.danielpacak.osgi.swingconsole/osgi.swingconsole

public AttributeFormField(AttributeValueConversionService conversionService, AttributeDTO attribute) {
  this.conversionService = checkArgumentNotNull(conversionService, "ConversionService cannot be null");
  this.attribute = checkArgumentNotNull(attribute, "Attribute cannot be null");
  editor = newEditor(attribute);
  label = new JLabel(attribute.getName() + " (" + attribute.getId() + ")", JLabel.TRAILING);
  label.setToolTipText(attribute.getDescription());
  label.setLabelFor(editor);
  label.setName("label.attribute." + attribute.getId());
  editor.setName("editor.attribute." + attribute.getId());
}

代码示例来源:origin: freeplane/freeplane

private void initialize() {
  rowNumber.setName("rowNumber");
  initializePickColorButton();
  initializeMoveColorUpButton();
  initializeMoveColorDownButton();
  initializeAddButton();
  initializeDeleteButton();
  appendRowsToPanel();
  addComponentsToPanel();
}

相关文章

JLabel类方法