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

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

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

JSpinner.setToolTipText介绍

暂无

代码示例

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

lblEdhPowerLevel.setText("EDH power level");
spnQuitRatio.setToolTipText("Players with quit % more than this value can't join this table");
spnMinimumRating.setToolTipText("Players with rating less than this value can't join this table");
spnEdhPowerLevel.setToolTipText("Players with decks with a higher power level can't join this table");

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

spnFreeMulligans.setToolTipText("Players can take this number of free mulligans (their hand size will not be reduced).");
spnNumWins.setToolTipText("To win a match a player has to win this number of games.");
spnNumWins.addChangeListener(evt -> spnNumWinsnumPlayersChanged(evt));
lblNumRounds.setToolTipText("<html>The number of rounds the swiss tournament has in total.<br>\nThe tournaments ends after that number of rounds or<br> \nif there are less than two players left in the tournament.");
spnNumRounds.setToolTipText("<html>The number of rounds the swiss tournament has in total.<br>\nThe tournaments ends after that number of rounds or<br> \nif there are less than two players left in the tournament.");
spnNumRounds.addChangeListener(evt -> spnNumRoundsnumPlayersChanged(evt));
chkRated.setToolTipText("Indicates if matches will be rated.");
spnConstructTime.setToolTipText("The time players have to build their deck.");
lblMinimumRating.setText("Minimum rating:");
spnQuitRatio.setToolTipText("Players with quit % more than this value can't join this table");
spnMinimumRating.setToolTipText("Players with rating less than this value can't join this table");
spnNumSeats.setToolTipText("The number of seats for each duel. If more than 2, will set number of wins to 1");
spnNumPlayers.setToolTipText("The total number of players who will draft");

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

);
this.minimumLength.setToolTipText(I18n.valueByKey("BRUTEFORCE_MIN_TOOLTIP"));
this.maximumLength.setToolTipText(I18n.valueByKey("BRUTEFORCE_MAX_TOOLTIP"));

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

/**
 * Create an editable labeled spinner with provided
 * characteristics.
 *
 * @param label the string to be used as label text
 * @param tip   the related tool tip text
 */
public LSpinner (String label,
         String tip)
{
  this.label = new JLabel(label, SwingConstants.RIGHT);
  spinner = new JSpinner();
  if (tip != null) {
    this.label.setToolTipText(tip);
    spinner.setToolTipText(tip);
  }
}

代码示例来源:origin: lbalazscs/Pixelitor

@Override
public void setToolTip(String tip) {
  slider.setToolTipText(tip);
  spinner.setToolTipText(tip);
}

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

SpinData (String label,
     String tip,
     SpinnerModel model)
{
  this.label = new JLabel(label, SwingConstants.RIGHT);
  spinner = new JSpinner(model);
  SpinnerUtil.setRightAlignment(spinner);
  SpinnerUtil.setEditable(spinner, true);
  spinner.setToolTipText(tip);
}

代码示例来源: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: com.eas.platypus/platypus-js-calendar-widget

@Override
public void setToolTipText(String aText) {
  super.setToolTipText(aText);
  if (_spinner != null) {
    _spinner.setToolTipText(aText);
  }
  if (_dropDownButton != null) {
    _dropDownButton.setToolTipText(aText);
  }
}

代码示例来源:origin: org.geotools/gt-widgets-swing-pending

/** Creates new form DefaultShapeTypeChooser */
public JWFSDataPanel() {
  initComponents();
  params.put("dbtype", "postgis");
  params.put(WFSDataStoreFactory.URL.key, WFSDataStoreFactory.URL.sample);
  params.put(WFSDataStoreFactory.USERNAME.key, WFSDataStoreFactory.USERNAME.sample);
  params.put(WFSDataStoreFactory.PASSWORD.key, WFSDataStoreFactory.PASSWORD.sample);
  params.put(WFSDataStoreFactory.BUFFER_SIZE.key, WFSDataStoreFactory.BUFFER_SIZE.sample);
  params.put(WFSDataStoreFactory.MAXFEATURES.key, WFSDataStoreFactory.MAXFEATURES.sample);
  params.put(WFSDataStoreFactory.TIMEOUT.key, WFSDataStoreFactory.TIMEOUT.sample);
  params.put(WFSDataStoreFactory.ENCODING.key, WFSDataStoreFactory.ENCODING.sample);
  params.put(WFSDataStoreFactory.LENIENT.key, WFSDataStoreFactory.LENIENT.sample);
  params.put(WFSDataStoreFactory.PROTOCOL.key, WFSDataStoreFactory.PROTOCOL.sample);
  params.put(WFSDataStoreFactory.TRY_GZIP.key, WFSDataStoreFactory.TRY_GZIP.sample);
  setProperties(params);
  jtf_url.setToolTipText(WFSDataStoreFactory.URL.description.toString());
  jtf_user.setToolTipText(WFSDataStoreFactory.USERNAME.description.toString());
  jtf_password.setToolTipText(WFSDataStoreFactory.PASSWORD.description.toString());
  jsp_buff_size.setToolTipText(WFSDataStoreFactory.BUFFER_SIZE.description.toString());
  jsp_max_features.setToolTipText(WFSDataStoreFactory.MAXFEATURES.description.toString());
  jsp_timeout.setToolTipText(WFSDataStoreFactory.TIMEOUT.description.toString());
  jtf_encoding.setToolTipText(WFSDataStoreFactory.ENCODING.description.toString());
  chk_lenient.setToolTipText(WFSDataStoreFactory.LENIENT.description.toString());
  chk_gzip.setToolTipText(WFSDataStoreFactory.TRY_GZIP.description.toString());
  chk_protocol.setToolTipText(WFSDataStoreFactory.PROTOCOL.description.toString());
  tab_table.setTableHeader(null);
  tab_table.setModel(new DBModel(tab_table));
}

代码示例来源:origin: org.geotools/gt-widgets-swing-pending

/** Creates new form DefaultShapeTypeChooser */
public JOracleDataPanel() {
  initComponents();
  params.put("dbtype", "oracle");
  params.put("host", "localhost");
  params.put("port", "1521");
  params.put("schema", "public");
  params.put("user", "");
  params.put("passwd", "");
  params.put("instance", "");
  params.put(OracleDataStoreFactory.MAXCONN.key, OracleDataStoreFactory.MAXCONN.sample);
  params.put(OracleDataStoreFactory.MINCONN.key, OracleDataStoreFactory.MINCONN.sample);
  params.put(OracleDataStoreFactory.VALIDATECONN.key, OracleDataStoreFactory.VALIDATECONN.sample);
  params.put("namespace", "");
  setProperties(params);
  
  jtf_host.setToolTipText("");
  jtf_port.setToolTipText("");
  jtf_schema.setToolTipText("");
  jtf_user.setToolTipText("");
  jtf_password.setToolTipText("");
  jtf_instance.setToolTipText("");
  jsp_max_connects.setToolTipText(OracleDataStoreFactory.MAXCONN.description.toString());
  jsp_min_connects.setToolTipText(OracleDataStoreFactory.MINCONN.description.toString());
  chk_validate.setToolTipText(OracleDataStoreFactory.VALIDATECONN.description.toString());
  jtf_namespace.setToolTipText("");
  tab_table.setTableHeader(null);
  tab_table.setModel(new DBModel(tab_table));
}

代码示例来源:origin: org.rescarta.rc-mct/rc-mct

/**
 * Setup components.
 */
private void rcSetupComponents() {
  // objIdJPanel
  this.objIdJPanel.setBorder(this.objIdPanelBorder);
  // defaultLangJPanel
  this.defaultLangJPanel.setBorder(this.defaultLangPanelBorder);
  // deafultPaginationJPanel
  this.defaultPaginationJPanel.setBorder(this.defaultPaginationPanelBorder);
  // defaultLangJComboBox
  for (String languageText : RcIso639_2b.getLanguageTextMap().values()) {
    this.defaultLangJComboBox.addItem(languageText);
  }
  this.defaultLangJComboBox.setSelectedItem(RcIso639_2b.ENG_TEXT);
  // defaultPaginationButtonGroup
  this.defaultPaginationButtonGroup.add(this.sequentialJRadioButton);
  this.defaultPaginationButtonGroup.add(this.fromFilenameJRadioButton);
  // sequentialJRadioButton
  this.sequentialJRadioButton.addActionListener(this);
  // fromFilenameJRadioButton
  this.fromFilenameJRadioButton.addActionListener(this);
  // startCharJSpinner
  this.startCharJSpinner.setToolTipText("The character index of the filename on which the page name begins.");
  // charLenJSpinner
  this.charLenJSpinner.setToolTipText("The number of page name characters to read from the filename.");
}

代码示例来源:origin: org.geotools/gt-widgets-swing-pending

jtf_user.setToolTipText(PostgisDataStoreFactory.USER.description.toString());
jtf_password.setToolTipText(PostgisDataStoreFactory.PASSWD.description.toString());
jsp_max_connects.setToolTipText(PostgisDataStoreFactory.MAXCONN.description.toString());
jsp_min_connects.setToolTipText(PostgisDataStoreFactory.MINCONN.description.toString());
jtf_namespace.setToolTipText(PostgisDataStoreFactory.NAMESPACE.description.toString());
chk_validate.setToolTipText(PostgisDataStoreFactory.VALIDATECONN.description.toString());

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

/**
 * Uses {@link GridBagLayout} for the layout. Adds components to edit the
 * name, depth and granular depth
 */
private void initView() {
  this.setLayout(new GridBagLayout());
  final GridBagConstraints outerConstraint = new GridBagConstraints();
  outerConstraint.anchor = GridBagConstraints.FIRST_LINE_START;
  outerConstraint.gridx = 0;
  outerConstraint.gridy = 0;
  outerConstraint.weighty = 0;
  outerConstraint.weightx = 0.1;
  outerConstraint.fill = GridBagConstraints.BOTH;
  this.nameField = new JTextField(this.bean.getName());
  this.add(this.nameField, outerConstraint);
  outerConstraint.gridx = 1;
  final SpinnerNumberModel depthModel = new SpinnerNumberModel(
      new Integer(this.bean.getDepth()), new Integer(0), new Integer(
          100), new Integer(1));
  this.depthSpinner = new JSpinner(depthModel);
  this.depthSpinner
      .setToolTipText("A depth of 0 means a simple value, like a string. Depth 1 is a list of simple values, while depth 2 is a list of a list of simple values");
  // depthSpinner.setValue(bean.getDepth());
  this.add(this.depthSpinner, outerConstraint);
}

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

.getDepth()), new Integer(0), new Integer(100), new Integer(1));
depthSpinner = new JSpinner(depthModel);
depthSpinner.setToolTipText("A depth of 0 means a simple value, like a string. Depth 1 is a list of simple values, while depth 2 is a list of a list of simple values");

代码示例来源:origin: org.fudaa.framework.ebli/ebli-2d

public void stateChanged(ChangeEvent _e) {
 selectRatioValue.getSpinner().setToolTipText(
   "<html><body>" + EbliLib.getS("Taille des vecteurs") + "<br>"
     + EbliLib.getS("{0} pixels reprsente 1 unit", spinnerForRatio.getValue().toString()));
}

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

/**
 * Uses {@link GridBagLayout} to layout the overall component. Adds the
 * individual editable elements to the view to allow parts of the
 * {@link ActivityInputPortDefinitionBean} to be changeD
 */
private void initView() {
  this.setLayout(new GridBagLayout());
  final GridBagConstraints outerConstraint = new GridBagConstraints();
  outerConstraint.anchor = GridBagConstraints.FIRST_LINE_START;
  outerConstraint.gridx = 0;
  outerConstraint.gridy = 0;
  outerConstraint.weighty = 0;
  outerConstraint.weightx = 0.1;
  outerConstraint.fill = GridBagConstraints.BOTH;
  this.nameField = new JTextField(this.bean.getName());
  this.add(this.nameField, outerConstraint);
  this.publishField = new JCheckBox();
  outerConstraint.gridx = 1;
  this.add(this.publishField, outerConstraint);
  outerConstraint.gridx = 2;
  final SpinnerNumberModel model = new SpinnerNumberModel(new Integer(
      this.bean.getDepth()), new Integer(0), new Integer(100),
      new Integer(1));
  this.depthSpinner = new JSpinner(model);
  this.depthSpinner.setEnabled(false);
  this.depthSpinner
      .setToolTipText("A depth of 0 means a simple value, like a string. Depth 1 is a list of simple values, while depth 2 is a list of a list of simple values");
  this.depthSpinner.setValue(this.bean.getDepth());
  this.add(this.depthSpinner, outerConstraint);
}

代码示例来源:origin: lbalazscs/Pixelitor

private void addCropSizeControls() {
  ChangeListener whChangeListener = e -> {
    if (state == TRANSFORM && !cropBox.isAdjusting()) {
      cropBox.setImSize(
          (int) wSizeSpinner.getValue(),
          (int) hSizeSpinner.getValue(),
        OpenComps.getActiveView()
      );
    }
  };
  // add crop width spinner
  wSizeSpinner = new JSpinner(new SpinnerNumberModel(
      0, 0, Canvas.MAX_WIDTH, 1));
  wSizeSpinner.addChangeListener(whChangeListener);
  wSizeSpinner.setToolTipText("Width of the cropped image (px)");
  settingsPanel.add(widthLabel);
  settingsPanel.add(wSizeSpinner);
  // add crop height spinner
  hSizeSpinner = new JSpinner(new SpinnerNumberModel(
      0, 0, Canvas.MAX_HEIGHT, 1));
  hSizeSpinner.addChangeListener(whChangeListener);
  hSizeSpinner.setToolTipText("Height of the cropped image (px)");
  settingsPanel.add(heightLabel);
  settingsPanel.add(hSizeSpinner);
}

代码示例来源:origin: org.fudaa.framework.ebli/ebli-3d

public ZControleEchelle() {
 spinner_ = new JSpinner();
 spinner_.setToolTipText(EbliLib.getS("Modifier l'chelle des z"));
 final SpinnerModel model = new SpinnerNumberModel(1, // initial value
   1, // min
   1000, // max
   1);
 spinner_.setModel(model);
 spinner_.getModel().addChangeListener(this);
 spinner_.setRequestFocusEnabled(false);
 spinner_.setFocusable(false);
}

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

shapeSpinner.addChangeListener(this);
shapeSpinner.setName("shapeSpinner");
shapeSpinner.setToolTipText("Selection of template shape");
anchorSpinner.addChangeListener(this);
anchorSpinner.setName("anchorSpinner");
anchorSpinner.setToolTipText("Selection of template anchor");

代码示例来源:origin: eu.agrosense.client/io-csv

skipLinesSpinner.setMinimumSize(new Dimension(72, FormRow.ROW_HEIGHT));
skipLinesSpinner.setMaximumSize(new Dimension(72, FormRow.ROW_HEIGHT));
skipLinesSpinner.setToolTipText(Bundle.CsvFileAttributesPanel_Skiplines_tooltip());
skipLinesSpinner.addChangeListener(new ChangeListener() {
  @Override

相关文章