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");
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");
); this.minimumLength.setToolTipText(I18n.valueByKey("BRUTEFORCE_MIN_TOOLTIP")); this.maximumLength.setToolTipText(I18n.valueByKey("BRUTEFORCE_MAX_TOOLTIP"));
/** * 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); } }
@Override public void setToolTip(String tip) { slider.setToolTipText(tip); spinner.setToolTipText(tip); }
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); }
/** * Set component's tooltip text. * * @param toolTipText * Tooltip text */ @Override public void setToolTipText(String toolTipText) { super.setToolTipText(toolTipText); jsValue.setToolTipText(toolTipText); jcbType.setToolTipText(toolTipText); }
@Override public void setToolTipText(String aText) { super.setToolTipText(aText); if (_spinner != null) { _spinner.setToolTipText(aText); } if (_dropDownButton != null) { _dropDownButton.setToolTipText(aText); } }
/** 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)); }
/** 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)); }
/** * 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."); }
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());
/** * 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); }
.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");
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())); }
/** * 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); }
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); }
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); }
shapeSpinner.addChangeListener(this); shapeSpinner.setName("shapeSpinner"); shapeSpinner.setToolTipText("Selection of template shape"); anchorSpinner.addChangeListener(this); anchorSpinner.setName("anchorSpinner"); anchorSpinner.setToolTipText("Selection of template anchor");
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