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

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

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

Checkbox.setFont介绍

暂无

代码示例

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

public void addCheckbox(String label, boolean defaultValue) {
  
  String label2 = label;
  if (label2.indexOf('_')!=-1) label2 = label2.replace('_', ' ');
  if (checkbox==null) {
    checkbox = new Vector(4);
    c.insets = getInsets(10,10,0,0);
  } else c.insets = getInsets(0,10,0,0);
  c.gridx = 0; c.gridy = y;
  c.gridwidth = 2;
  c.anchor = GridBagConstraints.WEST;
  Checkbox cb = new Checkbox(" "+label2);
  cb.setFont(font);
  grid.setConstraints(cb, c);
  cb.setState(defaultValue);
  cb.addItemListener(this);
  cb.addKeyListener(this);
  add(cb);
  checkbox.addElement(cb);
  y++;
}

代码示例来源: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/MTrackJ_

if (label.indexOf('_')!=-1) label = label.replace('_', ' ');
Checkbox cb = new Checkbox(" "+label);
cb.setFont(font);
checkbox.addElement(cb);
cb.setState(defaultValues[i1]);

代码示例来源:origin: ravn/jsocks

socks4radio.setFont(new Font(font.getName(), Font.BOLD, 14));
container.add(socks4radio, c);
socks5radio.setFont(new Font(font.getName(), Font.BOLD, 14));
container.add(socks5radio, c);

相关文章