javax.swing.JComboBox.setToolTipText()方法的使用及代码示例

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

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

JComboBox.setToolTipText介绍

暂无

代码示例

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

box.setToolTipText(selectedItem.toString());
  box.setToolTipText(box.getSelectedItem().toString());

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

lblRange.setText("Range of Influence");
cbRange.setToolTipText("<HTML>An option for multiplayer games.\nA player's range of influence is the maximum distance from that player, measured in player seats,<br>\nthat the player can affect. Players within that many seats of the player are within that player's range<br>\nof influence. Objects controlled by players within a player's range of influence are also within that<br>\nplayer's range of influence. Range of influence covers spells, abilities, effects, damage dealing, attacking,<nr>\nmaking choices, and winning the game.");
cbAttackOption.setToolTipText("<HTML>An option for multiplayer games that defines<br>\nwhich opponents can be attacked from a player.");
cbSkillLevel.setToolTipText("<HTML>This option can be used to make it easier to find matches<br>\nwith opponents of the appropriate skill level.");

代码示例来源:origin: winder/Universal-G-Code-Sender

baudCombo.setToolTipText("Select baudrate to use for the serial port.");

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

bindingGroup.addBinding(binding);
cbTimeLimit.setToolTipText("The time a player has for the whole match. If a player runs out of time during a game, he loses the complete match. ");
cbSkillLevel.setToolTipText("<HTML>This option can be used to make it easier to find matches<br>\nwith opponents of the appropriate skill level.");

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

cbSortBy.setToolTipText("Sort the cards if card view is active.");
cbSortBy.setMaximumSize(new java.awt.Dimension(120, 20));
cbSortBy.setMinimumSize(new java.awt.Dimension(120, 20));

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

this.hashTypes.setToolTipText(I18n.valueByKey("BRUTEFORCE_HASH_TYPE_TOOLTIP"));

代码示例来源:origin: pentaho/mondrian

listEditor.setToolTipText(null);
listEditor.removeActionListener(al);
listEditor.setToolTipText(null);
listEditor.removeActionListener(al);
listEditor.setToolTipText(null);
listEditor.removeActionListener(al);
listEditor.setModel(
listEditor.setToolTipText(null);
listEditor.removeActionListener(al);
listEditor.setModel(
listEditor.setToolTipText(null);
listEditor.removeActionListener(al);
listEditor.setModel(
listEditor.setToolTipText(null);
listEditor.removeActionListener(al);
listEditor.setModel(
listEditor.setToolTipText(null);
listEditor.removeActionListener(al);
listEditor.setModel(
listEditor.setToolTipText(null);
listEditor.removeActionListener(al);
listEditor.setModel(

代码示例来源:origin: pentaho/mondrian

"schemaExplorer.hierarchy.select.table", "Table")
  });
listEditor.setToolTipText(
  getResourceConverter().getString(
    "schemaExplorer.hierarchy.select.title",

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

/**
 * Registers the text to display in a tool tip.
 * The text displays when the cursor lingers over the component.
 * @param text the string to display; if the text is null,
 *      the tool tip is turned off for this component
 */
@Override
public void setToolTipText(String text) {
  choiceList.setToolTipText(text);
}

代码示例来源:origin: winder/Universal-G-Code-Sender

baudrateSelectionComboBox.setToolTipText("Select baudrate to use for the serial port.");
baudrateSelectionComboBox.addActionListener(new java.awt.event.ActionListener() {
  public void actionPerformed(java.awt.event.ActionEvent evt) {

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

cbBattlefieldFeedbackColorizingMode.setToolTipText("Battlefield feedback panel colorizing on your turn (e.g. use green color if you must select card or answer to request)");
cbBattlefieldFeedbackColorizingMode.addActionListener(new java.awt.event.ActionListener() {
  public void actionPerformed(java.awt.event.ActionEvent evt) {

代码示例来源:origin: net.sf.taverna.t2.ui-activities/component-activity-ui

protected void setLicense(License license) {
  if (license != null)
    licenseBox.setToolTipText("<html>" + license.getDescription()
        + "</html>");
  else
    licenseBox.setToolTipText(null);
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/component-activity-ui

private void updateToolTipText() {
    Version selectedVersion = (Version) componentVersionChoice
        .getSelectedItem();
    componentVersionChoice.setToolTipText(selectedVersion.getDescription());
  }
}

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

@Override
 public void actionPerformed(ActionEvent e) {
  String selected = (String) m_combo.getSelectedItem();
  try {
   selected = processSelected(selected);
   selected = m_env.substitute(selected);
  } catch (Exception ex) {
   // quietly ignore unresolved variables
  }
  m_combo.setToolTipText(selected);
 }
});

代码示例来源:origin: net.sf.taverna.t2.ui-activities/component-activity-ui

protected void updateToolTipText() {
  Version chosenComponentVersion = getChosenComponentVersion();
  if (chosenComponentVersion != null)
    componentVersionChoice.setToolTipText(chosenComponentVersion
        .getDescription());
  else
    componentVersionChoice.setToolTipText(null);
}

代码示例来源:origin: org.java.net.substance/substance

private void updatePaletteList() {
  PaletteListModel palette = (PaletteListModel) paletteCombo.getSelectedItem();
  paletteList.setModel(palette);
  paletteCombo.setToolTipText(palette.getInfo());
  updateChooser();
}

代码示例来源:origin: net.sf.taverna.t2.ui-activities/component-activity-ui

private void updateList() {
  familyMap.clear();
  familyBox.removeAllItems();
  familyBox.setToolTipText(null);
  notifyObservers();
  familyBox.addItem(READING_MSG);
  familyBox.setEnabled(false);
  new FamilyUpdater().execute();
}

代码示例来源:origin: kaikramer/keystore-explorer

/**
 * Set component's tooltip text.
 *
 * @param toolTipText
 *            Tooltip text
 */
@Override
public void setToolTipText(String toolTipText) {
  super.setToolTipText(toolTipText);
  jsValue.setToolTipText(toolTipText);
  jcbType.setToolTipText(toolTipText);
}

代码示例来源:origin: Audiveris/audiveris

PluginPane ()
{
  final Collection<String> ids = PluginsManager.getInstance().getPluginIds();
  box = new JComboBox<>(ids.toArray(new String[ids.size()]));
  box.setToolTipText("Default plugin to be launched");
  box.setSelectedItem(PluginsManager.defaultPluginId.getValue());
  PanelBuilder builder = new PanelBuilder(layout2, this);
  CellConstraints cst = new CellConstraints();
  final int r = 1;
  builder.add(box, cst.xy(1, r));
  builder.add(new JLabel("Plugin launched on MusicXML output"), cst.xy(3, r));
}

代码示例来源:origin: Audiveris/audiveris

EarlyPane ()
{
  box = new JComboBox<>(Step.values());
  box.setToolTipText("Which step to trigger on any image input");
  box.setSelectedItem(StubsController.getEarlyStep());
  box.addActionListener(this);
  PanelBuilder builder = new PanelBuilder(layout2, this);
  CellConstraints cst = new CellConstraints();
  final int r = 1;
  builder.add(box, cst.xy(1, r));
  builder.add(new JLabel("Step triggered on image input"), cst.xy(3, r));
}

相关文章

JComboBox类方法