javax.swing.JCheckBox.getToolTipText()方法的使用及代码示例

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

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

JCheckBox.getToolTipText介绍

暂无

代码示例

代码示例来源:origin: org.tentackle/tentackle-swing

/**
 * {@inheritDoc}
 * <p>
 * Overridden to show tooltip in tooltipdisplay _or_ via mouse hover
 * but _not_ both.
 */
@Override
public String getToolTipText() {
 return getTooltipDisplay() == null ? super.getToolTipText() : null;
}

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

public HgShelveChangesSupport () {
  doBackupChxBox = new JCheckBox();
  org.openide.awt.Mnemonics.setLocalizedText(doBackupChxBox, org.openide.util.NbBundle.getMessage(ShelveChangesAction.class, "ShelvePanel.doBackupChxBox.text")); //NOI18N
  doBackupChxBox.setToolTipText(org.openide.util.NbBundle.getMessage(ShelveChangesAction.class, "ShelvePanel.doBackupChxBox.desc")); //NOI18N
  doBackupChxBox.getAccessibleContext().setAccessibleDescription(doBackupChxBox.getToolTipText());
  doBackupChxBox.setSelected(HgModuleConfig.getDefault().getBackupOnRevertModifications());
  doPurgeChxBox = new JCheckBox();
  org.openide.awt.Mnemonics.setLocalizedText(doPurgeChxBox, org.openide.util.NbBundle.getMessage(ShelveChangesAction.class, "ShelvePanel.doPurgeChxBox.text")); //NOI18N
  doPurgeChxBox.setToolTipText(org.openide.util.NbBundle.getMessage(ShelveChangesAction.class, "ShelvePanel.doPurgeChxBox.desc")); //NOI18N
  doPurgeChxBox.getAccessibleContext().setAccessibleDescription(doPurgeChxBox.getToolTipText());
  doPurgeChxBox.setSelected(HgModuleConfig.getDefault().isRemoveNewFilesOnRevertModifications());
  optionsPanel = new JPanel();
  optionsPanel.setLayout(new BoxLayout(optionsPanel, BoxLayout.Y_AXIS));
  optionsPanel.add(doBackupChxBox);
  optionsPanel.add(doPurgeChxBox);
}

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

private void initComponents() {
    org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(RevertModificationsPanel.class, "RevertModificationsPanel.infoLabel.text")); // NOI18N
    org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(RevertModificationsPanel.class, "RevertModificationsPanel.infoLabel2.text")); // NOI18N

    doBackupChxBox = new JCheckBox();
    org.openide.awt.Mnemonics.setLocalizedText(doBackupChxBox, org.openide.util.NbBundle.getMessage(RevertModificationsPanel.class, "RevertModificationsPanel.doBackupChxBox.text")); // NOI18N
    boolean doBackup = HgModuleConfig.getDefault().getBackupOnRevertModifications();
    doBackupChxBox.setSelected(doBackup);
    doPurgeChxBox = new JCheckBox();
    org.openide.awt.Mnemonics.setLocalizedText(doPurgeChxBox, org.openide.util.NbBundle.getMessage(RevertModificationsPanel.class, "RevertModificationsPanel.doPurgeChxBox.text")); // NOI18N
    doPurgeChxBox.setToolTipText(org.openide.util.NbBundle.getMessage(RevertModificationsPanel.class, "RevertModificationsPanel.doPurgeChxBox.desc")); // NOI18N
    doPurgeChxBox.getAccessibleContext().setAccessibleDescription(doPurgeChxBox.getToolTipText());
    boolean doPurge = HgModuleConfig.getDefault().isRemoveNewFilesOnRevertModifications();
    doPurgeChxBox.setSelected(doPurge);
    JPanel optionsPanel = new JPanel();
    optionsPanel.setLayout(new BoxLayout(optionsPanel, BoxLayout.Y_AXIS));
    optionsPanel.add(doBackupChxBox);
    optionsPanel.add(doPurgeChxBox);
    optionsPanel.setBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0));
    setOptionsPanel(optionsPanel, null);
  }
}

代码示例来源:origin: org.gdl-lang.gdl-tools/openehr-utils-gui-swing

public Object getCellEditorValue() {
  JCheckBox checkbox = renderer.getLeafRenderer();
  renderer.getNodoSeleccionable().setAllSelected(checkbox.isSelected());
  tree.setToolTipText(checkbox.getToolTipText());
  tree.repaint();
  return checkbox;
}

代码示例来源:origin: MrCrayfish/ModelCreator

includeMethods.setToolTipText(includeMethods.getToolTipText().replace(", raytracing", ""));
useBoundsHelper.setForeground(Color.BLACK);
useBoundsHelper.setSelected(true);

代码示例来源:origin: org.tentackle/tentackle-swing

private void performFocusGained (Component opposite)  {
 if (opposite instanceof FormComponent)  {
  focusGainedFromTransfer         = ((FormComponent)opposite).wasTransferFocus();
  focusGainedFromTransferBackward = ((FormComponent)opposite).wasTransferFocusBackward();
 }
 transferFocusDone = false;
 transferFocusBackwardDone = false;
 if (isAutoUpdate()) {
  fireValueChanged();
 }
 formWrapWindow = null;
 showTooltip(super.getToolTipText());
 oldValueShown = getValueShown();
}

相关文章

JCheckBox类方法