java.awt.Checkbox.setLabel()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(125)

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

Checkbox.setLabel介绍

暂无

代码示例

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

public void charEdit(Checkbox chara,String account,String password){
  chara.setLabel(showInputDialog("Character Name?"));
  account=(showInputDialog("Account Name?"));
  password=(showInputDialog("Account Password?"));
  chara.setEnabled(true);
}

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

/** Used by PlugInFilterRunner to provide visable feedback whether preview
  is running or not by switching from "Preview" to "wait..."
 */
public void previewRunning(boolean isRunning) {
  if (previewCheckbox!=null) {
    previewCheckbox.setLabel(isRunning ? previewRunning : previewLabel);
    if (IJ.isMacOSX()) repaint();   //workaround OSX 10.4 refresh bug
  }
}

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

/** Used by PlugInFilterRunner to provide visable feedback whether preview
  is running or not by switching from "Preview" to "wait..."
 */
public void previewRunning(boolean isRunning) {
  if (previewCheckbox!=null) {
    previewCheckbox.setLabel(isRunning ? previewRunning : previewLabel);
    if (IJ.isMacOSX()) repaint();   //workaround OSX 10.4 refresh bug
  }
}

代码示例来源:origin: net.preibisch/multiview-reconstruction

((Checkbox)gd.getCheckboxes().lastElement()).setLabel( fileName );
if ( !fileExisits )
  ((Checkbox)gd.getCheckboxes().lastElement()).setBackground( GUIHelper.error );

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

/**
 * Return the EhterializeCheckbox property value.
 * @return java.awt.Checkbox
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Checkbox getEtherializeCheckbox() {
  if (ivjEtherializeCheckbox == null) {
    try {
      ivjEtherializeCheckbox = new java.awt.Checkbox();
      ivjEtherializeCheckbox.setName("EtherializeCheckbox");
      ivjEtherializeCheckbox.setFont(new java.awt.Font("dialog", 2, 10));
      ivjEtherializeCheckbox.setLabel("etherialize_objects");
      // user code begin {1}
      // user code end
    } catch (java.lang.Throwable ivjExc) {
      // user code begin {2}
      // user code end
      handleException(ivjExc);
    }
  };
  return ivjEtherializeCheckbox;
}
/**

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

/**
 * Return the WaitCheckbox property value.
 * @return java.awt.Checkbox
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Checkbox getWaitCheckbox() {
  if (ivjWaitCheckbox == null) {
    try {
      ivjWaitCheckbox = new java.awt.Checkbox();
      ivjWaitCheckbox.setName("WaitCheckbox");
      ivjWaitCheckbox.setFont(new java.awt.Font("dialog", 2, 10));
      ivjWaitCheckbox.setLabel("wait_for_completion");
      // user code begin {1}
      // user code end
    } catch (java.lang.Throwable ivjExc) {
      // user code begin {2}
      // user code end
      handleException(ivjExc);
    }
  };
  return ivjWaitCheckbox;
}
/**

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

reloadPaths();
useAllPathsCheckbox.setLabel("Use all " + numberOfAllPaths + " paths in analysis?");
useSelectedPathsCheckbox.setLabel("Use only the " + numberOfSelectedPaths + " selected paths in analysis?");
c.insets = new Insets(0, margin, margin, margin);
if (twoDimensional)
  normalizationForSphereVolume.setLabel("Normalize for area enclosed by circle");
else
  normalizationForSphereVolume.setLabel("Normalize for volume enclosed by circle");
add(normalizationForSphereVolume, c);
normalizationForSphereVolume.addItemListener(this);

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

panel1.add(statusLabel);
boundingBoxCheckbox.setLabel("Bounding Box ");
boundingBoxCheckbox.setName("boundingBoxCheckBox"); // NOI18N
boundingBoxCheckbox.addItemListener(new java.awt.event.ItemListener() {
panel1.add(boundingBoxCheckbox);
keyNavigationOnlyCheckbox.setLabel("Key Nav. Only");
keyNavigationOnlyCheckbox.setState(true);
panel1.add(keyNavigationOnlyCheckbox);

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

channelActive[i].repaint();
channelDisplayed[i].setLabel(i5d.getChannelCalibration(i + 1)
  .getLabel());

代码示例来源:origin: IanDarwin/javasrc

Checkbox1.setLabel("4-Good");
Checkbox2 = new Checkbox();
Checkbox2.setName("3");
Checkbox2.setLabel("3-OK");
Checkbox3 = new Checkbox();
Checkbox3.setName("2");
Checkbox3.setLabel("2-Fair");
Checkbox4 = new Checkbox();
Checkbox4.setName("1");
Checkbox4.setLabel("1-Poor");
Checkbox5 = new Checkbox();
Checkbox5.setName("0");
Checkbox5.setLabel("0-Unacceptable");
Checkbox11.setLabel("4-Good");
Checkbox21 = new Checkbox();
Checkbox21.setName("3");
Checkbox21.setLabel("3-OK");
Checkbox31 = new Checkbox();
Checkbox31.setName("2");
Checkbox31.setLabel("2-Fair");
Checkbox41 = new Checkbox();
Checkbox41.setName("1");
Checkbox41.setLabel("1-Poor");
Checkbox51 = new Checkbox();
Checkbox51.setName("0");
Checkbox51.setLabel("0-Unacceptable");

相关文章