本文整理了Java中javax.swing.JTextField.setToolTipText()
方法的一些代码示例,展示了JTextField.setToolTipText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.setToolTipText()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:setToolTipText
暂无
代码示例来源:origin: wiztools/rest-client
@PostConstruct
protected void init() {
setLayout(new FlowLayout(FlowLayout.LEFT));
jtf_url.setToolTipText("Contents of this URL will be set as request body");
JPanel jp = new JPanel(new BorderLayout());
JPanel jp_west = new JPanel(new GridLayout(2, 1));
jp_west.add(new JLabel(" Content type: "));
jp_west.add(new JLabel(" URL: "));
jp.add(jp_west, BorderLayout.WEST);
JPanel jp_center = new JPanel(new GridLayout(2, 1));
jp_center.add(jp_content_type_charset.getComponent());
jp_center.add(UIUtil.getFlowLayoutPanelLeftAligned(jtf_url));
jp.add(jp_center, BorderLayout.CENTER);
add(jp);
}
代码示例来源:origin: magefree/mage
spnNumRounds = new javax.swing.JSpinner();
lblPacks = new javax.swing.JLabel();
pnlPacks = new javax.swing.JPanel();
lblNbrPlayers = new javax.swing.JLabel();
spnNumPlayers = new javax.swing.JSpinner();
lblNbrSeats = new javax.swing.JLabel();
spnNumSeats = new javax.swing.JSpinner();
pnlDraftOptions = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
cbDraftTiming = new javax.swing.JComboBox();
spnConstructTime = new javax.swing.JSpinner();
player1Panel = new mage.client.table.NewPlayerPanel();
pnlPlayers = new javax.swing.JPanel();
pnlOtherPlayers = new javax.swing.JPanel();
btnSavedConfiguration1 = new javax.swing.JButton();
lblPassword.setToolTipText("Players have to enter the password to be able to join this table.");
txtPassword.setToolTipText("Players have to enter the password to be able to join this table.");
btnSavedConfiguration1.addActionListener(evt -> btnSavedConfigurationActionPerformed(evt, 1));
btnSavedConfiguration1.setVisible(true);
btnSavedConfiguration2.addActionListener(evt -> btnSavedConfigurationActionPerformed(evt, 2));
btnSavedConfiguration2.setVisible(true);
btnOk.addActionListener(evt -> btnOkActionPerformed(evt));
代码示例来源:origin: magefree/mage
creatureCountLabel.setToolTipText("Number of creatures in deck");
JPanel toolbar = new JPanel(new BorderLayout());
JPanel toolbarInner = new JPanel();
toolbar.setBackground(new Color(250, 250, 250, 150));
toolbar.setOpaque(true);
toolbarInner.setOpaque(false);
toolbarInner.add(deckNameAndCountLabel);
toolbarInner.add(landCountLabel);
toolbarInner.add(creatureCountLabel);
toolbarInner.add(sortButton);
toolbarInner.add(filterButton);
toolbarInner.add(blingButton);
toolbar.add(toolbarInner, BorderLayout.WEST);
JPanel sliderPanel = new JPanel(new GridBagLayout());
sliderPanel.setOpaque(false);
cardSizeSlider = new JSlider(SwingConstants.HORIZONTAL, 0, 100, 50);
searchByTextField.setToolTipText("Searches for card names, types, rarity, casting cost and rules text. NB: Mana symbols are written like {W},{U},{C} etc");
searchByTextField.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent e) {
analyseButton.addActionListener(evt -> analyseDeck());
blingButton.addActionListener(evt -> blingDeck());
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
private void addProcedureSeparatorTextField(JPanel panel, int col, int row)
{
GridBagConstraints c = new GridBagConstraints();
c.gridx = col;
c.gridy = row;
c.ipadx = 40; // Increases component width by 20 pixels
c.insets = new Insets(5, 5, 0, 0);
c.anchor = GridBagConstraints.WEST;
procedureSeparatorTextField = new JTextField(10);
procedureSeparatorTextField.setHorizontalAlignment(JTextField.RIGHT);
procedureSeparatorTextField.setToolTipText(i18n.PROC_SEP_LABEL_TT);
panel.add(procedureSeparatorTextField, c);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
public MercurialOptionsPanelController() {
panel = new MercurialPanel(this);
panel.execPathBrowseButton.addActionListener(this);
panel.exportFilenameBrowseButton.addActionListener(this);
String tooltip = NbBundle.getMessage(MercurialPanel.class, "MercurialPanel.annotationTextField.toolTipText", MercurialAnnotator.LABELS); // NOI18N
panel.annotationTextField.setToolTipText(tooltip);
panel.addButton.addActionListener(this);
panel.manageButton.addActionListener(this);
}
代码示例来源:origin: org.apache.airavata/airavata-messenger-client
jButtonStart.setToolTipText("Subscribe to the topic and start listening");
jButtonStart.setText("Start");
jButtonStart.addActionListener(new NotificationViewerFrame_jButton1_actionAdapter(this));
jLabel2.setFont(new java.awt.Font("Dialog", Font.BOLD, 11));
jLabel2.setText("BrokerURL");
jTextBrokerUrl.setToolTipText("Enter Broker URL here.");
jTextBrokerUrl.setText("http://localhost:8080/axis2/services/NotificationService");
jLabel3.setFont(new java.awt.Font("Dialog", Font.BOLD, 11));
jLabel3.setText("Listening Port");
jTextPort.setToolTipText("Enter the port this listener will be listening to.");
jTextPort.setText("19999");
jLabel4.setFont(new java.awt.Font("Dialog", Font.BOLD, 11));
jLabel4.setText("Topic");
jTextTopic.setToolTipText("Enter the topic to subscribe.");
jTextTopic.setText("topic");
jTextAreaBrief.setToolTipText("Summary of the messages received.");
jButtonClear.addActionListener(new NotificationViewerFrame_jButtonClear_actionAdapter(this));
jButtonStop.setEnabled(false);
jButtonStop.setToolTipText("Unsubscribe to the topic and stop listening.");
jButtonStop.setText("Stop");
jButtonStop.addActionListener(new NotificationViewerFrame_jButtonStop_actionAdapter(this));
jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
jScrollPane1.setAutoscrolls(true);
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2
jPanel6 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
conceptClassesTextField = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
librariesTextField = new javax.swing.JTextField();
jPanel7 = new javax.swing.JPanel();
customPopupCodeScrollPane = new javax.swing.JScrollPane();
customPopupCode = new javax.swing.JTextArea();
conceptClassesTextField.setToolTipText("Use comma ( , ) to separate different Concept Classes. Leave empty to allow all Concept Classes.");
conceptClassesTextField.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
代码示例来源:origin: ron190/jsql-injection
buttonCheckIp.addActionListener(new ActionCheckIP());
buttonCheckIp.setToolTipText(
"<html><b>Verify what public IP address is used by jSQL</b><br>"
});
JPanel panelGeneralPreferences = new JPanel();
panelGeneralPreferences.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0));
panelGeneral.setBorder(BorderFactory.createEmptyBorder(10, 15, 0, 15));
panelGeneral.add(new JLabel("<html><b>General</b> / Standard options</html>"), BorderLayout.NORTH);
JPanel panelInjectionPreferences = new JPanel();
panelInjectionPreferences.setBorder(BorderFactory.createEmptyBorder(10, 0, 0, 0));
panelInjection.setBorder(BorderFactory.createEmptyBorder(10, 15, 0, 15));
this.textKerberosLoginConf.setToolTipText(
"<html>"
+ "Define the path to <b>login.conf</b>. Sample :<br>"
+ "<i>Principal name is case sensitive ; entry-name is read automatically.</i>"
+ "</html>");
this.textKerberosKrb5Conf.setToolTipText(
"<html>"
+ "Define the path to <b>krb5.conf</b>. Sample :<br>"
代码示例来源:origin: ron190/jsql-injection
JPanel userPassPanel = new JPanel();
userPassPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 1, 1));
this.username.setToolTipText(I18n.valueByKey("SQL_SHELL_USERNAME_TOOLTIP"));
this.password.setToolTipText(I18n.valueByKey("SQL_SHELL_PASSWORD_TOOLTIP"));
JPanel panelPassword = new JPanel(new BorderLayout());
panelPassword.setBorder(BorderFactory.createEmptyBorder(1, 0, 0, 0));
panelPassword.add(this.password);
代码示例来源:origin: realXuJiang/bigtable-sql
private void addProcedureSeparatorTextField(JPanel panel, int col, int row)
{
GridBagConstraints c = new GridBagConstraints();
c.gridx = col;
c.gridy = row;
c.ipadx = 40; // Increases component width by 20 pixels
c.insets = new Insets(5, 5, 0, 0);
c.anchor = GridBagConstraints.WEST;
procedureSeparatorTextField = new JTextField(10);
procedureSeparatorTextField.setHorizontalAlignment(JTextField.RIGHT);
procedureSeparatorTextField.setToolTipText(i18n.PROC_SEP_LABEL_TT);
panel.add(procedureSeparatorTextField, c);
}
代码示例来源:origin: net.sf.squirrel-sql.plugins/firebirdmanager
private void initVisualObjects() {
btnNew.setText(i18n.LBL_BTN_NEW);
btnNew.setIcon(FirebirdManagerHelper.loadIcon("new22x22.png"));
btnNew.addActionListener(this);
btnSave.setText(i18n.LBL_BTN_SAVE);
btnSave.setIcon(FirebirdManagerHelper.loadIcon("save22x22.png"));
btnSave.addActionListener(this);
btnCancel.setText(i18n.LBL_BTN_CANCEL);
btnCancel.setIcon(FirebirdManagerHelper.loadIcon("cancel22x22.png"));
btnCancel.addActionListener(this);
btnDelete.setText(i18n.LBL_BTN_DELETE);
btnDelete.setIcon(FirebirdManagerHelper.loadIcon("delete22x22.png"));
btnDelete.addActionListener(this);
jtableRoles.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
jtableRoles.getSelectionModel().addListSelectionListener(this);
jtextfieldRolename.setToolTipText(i18n.TOOLTIP_ROLENAME);
jtextfieldRolename.addKeyListener(this);
controlComponents(FirebirdManagerHelper.DISPLAY_MODE);
}
代码示例来源:origin: magefree/mage
tbSpecial = new javax.swing.JToggleButton();
cardSelectorScrollPane = new javax.swing.JScrollPane();
cardSelectorBottomPanel = new javax.swing.JPanel();
jButtonAddToMain = new javax.swing.JButton();
jButtonRemoveFromMain = new javax.swing.JButton();
btnExpansionSearch.setPreferredSize(new java.awt.Dimension(23, 23));
btnExpansionSearch.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
btnExpansionSearch.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnExpansionSearchActionPerformed(evt);
btnBooster.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
btnBooster.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
btnBooster.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnBoosterActionPerformed(evt);
btnClear.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
btnClear.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
btnClear.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnClearActionPerformed(evt);
jTextFieldSearch.setToolTipText("Searches for card names and in the rule text of the card.");
代码示例来源:origin: org.apache.airavata/messenger-client
jButtonStart.setToolTipText("Subscribe to the topic and start listening");
jButtonStart.setText("Start");
jButtonStart.addActionListener(new NotificationViewerFrame_jButton1_actionAdapter(this));
jLabel2.setFont(new java.awt.Font("Dialog", Font.BOLD, 11));
jLabel2.setText("BrokerURL");
jTextBrokerUrl.setToolTipText("Enter Broker URL here.");
jTextBrokerUrl.setText("http://localhost:8080/axis2/services/NotificationService");
jLabel3.setFont(new java.awt.Font("Dialog", Font.BOLD, 11));
jLabel3.setText("Listening Port");
jTextPort.setToolTipText("Enter the port this listener will be listening to.");
jTextPort.setText("19999");
jLabel4.setFont(new java.awt.Font("Dialog", Font.BOLD, 11));
jLabel4.setText("Topic");
jTextTopic.setToolTipText("Enter the topic to subscribe.");
jTextTopic.setText("topic");
jTextAreaBrief.setToolTipText("Summary of the messages received.");
jButtonClear.addActionListener(new NotificationViewerFrame_jButtonClear_actionAdapter(this));
jButtonStop.setEnabled(false);
jButtonStop.setToolTipText("Unsubscribe to the topic and stop listening.");
jButtonStop.setText("Stop");
jButtonStop.addActionListener(new NotificationViewerFrame_jButtonStop_actionAdapter(this));
jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
jScrollPane1.setAutoscrolls(true);
代码示例来源:origin: magefree/mage
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
guiSizeBasic.add(sliderFontSize, gridBagConstraints);
gridBagConstraints.ipady = 3;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
guiSizeBasic.add(fontSizeLabel, gridBagConstraints);
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
guiSizeBasic.add(sliderChatFontSize, gridBagConstraints);
txtImageFolderPath.setToolTipText("The selected image will be used as background picture. You have to restart MAGE to view a changed background image.");
btnBrowseImageLocation.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnBrowseImageLocationActionPerformed(evt);
btnBrowseBackgroundImage.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnBrowseBackgroundImageActionPerformed(evt);
lblURLServerList.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
txtURLServerList.setToolTipText("The URL XMage tries to read a server list from.");
txtURLServerList.setPreferredSize(new java.awt.Dimension(300, 22));
代码示例来源:origin: ron190/jsql-injection
this.add(new LightScrollPane(1, 0, 0, 0, this.getListPaths()), BorderLayout.CENTER);
JPanel southPanel = new JPanel();
southPanel.setLayout(new BoxLayout(southPanel, BoxLayout.Y_AXIS));
this.textfieldUrlShell.setToolTipText(urlTooltip);
this.textfieldUrlShell.setBorder(
BorderFactory.createCompoundBorder(
JPanel lastLine = new JPanel();
lastLine.setLayout(new BoxLayout(lastLine, BoxLayout.X_AXIS));
lastLine.setBorder(
this.privilege.setToolTipText(I18n.valueByKey("PRIVILEGE_TOOLTIP"));
lastLine.add(this.privilege);
lastLine.add(Box.createHorizontalStrut(5));
lastLine.add(Box.createHorizontalGlue());
lastLine.add(this.run);
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
private void addStatementSeparatorTextField(JPanel panel, int col, int row)
{
GridBagConstraints c = new GridBagConstraints();
c.gridx = col;
c.gridy = row;
c.ipadx = 40; // Increases component width by 40 pixels
c.insets = new Insets(5, 5, 0, 0);
c.anchor = GridBagConstraints.WEST;
statementSeparatorTextField = new JTextField(10);
statementSeparatorTextField.setName("statementSeparatorTextField");
statementSeparatorTextField.setHorizontalAlignment(JTextField.RIGHT);
statementSeparatorTextField.setToolTipText(i18n.STMT_SEP_LABEL_TT);
panel.add(statementSeparatorTextField, c);
}
代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client
if (JFileChooserDialogType == JFileChooser.SAVE_DIALOG) {
fc.setDialogTitle("Save File");
f.setToolTipText("Path to output file");
b.setToolTipText("Set output file");
} else {
fc.setDialogTitle("Open File");
f.setToolTipText("Path to input file");
b.setToolTipText("Choose input file");
this.add(b);
b.addActionListener(new ActionListener() {
代码示例来源:origin: SINTEF-9012/JArduino
this.gui = gui;
this.ijadcca = ijadcca;
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setLayout(new BorderLayout(0, 0));
getContentPane().add(duration);
duration.setColumns(10);
duration.setToolTipText("Miliseconds");
btnSend.addActionListener(l);
btnCancel.addActionListener(l);
代码示例来源:origin: com.atlassian.jira/jira-configurator
private JComponent getJiraHomePicker()
{
JPanel panel = new JPanel(new BorderLayout(4, 0));
tfJiraHome.setToolTipText("Set the 'JIRA Home' directory (used to store data for this JIRA installation)");
// Let TextField take up most room
panel.add(tfJiraHome, BorderLayout.CENTER);
// Add a button on the end
final JButton btnJiraHome = new JButton("Browse");
btnJiraHome.setToolTipText("Opens a dialog box to select the JIRA Home");
btnJiraHome.addActionListener(new ActionListener()
{
public void actionPerformed(final ActionEvent e)
{
browseForJiraHome();
}
});
panel.add(btnJiraHome, BorderLayout.EAST);
return panel;
}
代码示例来源:origin: ron190/jsql-injection
super(new BorderLayout());
JPanel options = new JPanel(new BorderLayout());
JPanel firstLine = new JPanel(new BorderLayout());
this.hash.setToolTipText(I18n.valueByKey("BRUTEFORCE_HASH_TOOLTIP"));
firstLine.add(this.hash, BorderLayout.CENTER);
this.hash.setBorder(
BorderFactory.createCompoundBorder(
final JPanel secondLine = new JPanel();
secondLine.setLayout(new BoxLayout(secondLine, BoxLayout.X_AXIS));
this.hashTypes.setToolTipText(I18n.valueByKey("BRUTEFORCE_HASH_TYPE_TOOLTIP"));
secondLine.add(this.hashTypes);
secondLine.add(this.lowerCaseCharacters);
secondLine.add(this.upperCaseCharacters);
secondLine.add(this.numericCharacters);
this.exclude.setToolTipText(I18n.valueByKey("BRUTEFORCE_EXCLUDE_TOOLTIP"));
this.exclude.setBorder(
BorderFactory.createCompoundBorder(
内容来源于网络,如有侵权,请联系作者删除!