javax.swing.JTextField.setVisible()方法的使用及代码示例

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

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

JTextField.setVisible介绍

暂无

代码示例

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

public void disableInput() {
  this.txtMessage.setVisible(false);
}

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

private void cancelNumberField() {
  numberField.setVisible(false);
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

/**
* Enables/disables location.
 * @param b
 */
public final void setEnableLocation(boolean b) {
  txtLocation.setEnabled(b);
  txtLocation.setVisible(b);
}

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

@Override
  public void keyPressed(KeyEvent e) {
    if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
      breakFocusCycle();
      numberField.setVisible(false);
    }
  }
}

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

public void showDeckElements(boolean show) {
  this.lblPlayerDeck.setVisible(show);
  this.txtPlayerDeck.setVisible(show);
  this.btnGenerate.setVisible(show);
  this.btnPlayerDeck.setVisible(show);
}

代码示例来源:origin: opensourceBIM/BIMserver

protected void updateProxyVisibility() {
  proxyHostLabel.setVisible(useProxy.isSelected());
  proxyPortLabel.setVisible(useProxy.isSelected());
  proxyHost.setVisible(useProxy.isSelected());
  proxyPort.setVisible(useProxy.isSelected());
}

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

private void commitNumberField() {
  numberField.setVisible(false);
  String s = numberField.getText();
  try {
    setValueFromString(s);
    fireStateChanged();
  } catch (NumberFormatException e) {
    Toolkit.getDefaultToolkit().beep();
  }
}

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

private void showNumberField() {
  numberField.setText(valueAsString());
  numberField.setVisible(true);
  numberField.requestFocus();
  numberField.selectAll();
  componentResized(null);
  repaint();
}

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

@Override
public void keyPressed(KeyEvent e) {
  AbstractNodeModel nodeModel = (AbstractNodeModel) currentNode.getUserObject();
  if (e.getKeyCode() == KeyEvent.VK_F2 && !nodeModel.isRunning()) {
    nodeModel.setIsEdited(true);
    
    PanelNode.this.label.setVisible(false);
    PanelNode.this.textFieldEditable.setVisible(true);
    PanelNode.this.textFieldEditable.requestFocusInWindow();
    
    tree.revalidate();
    tree.repaint();
  }
}

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

case LIMITED_BUILDING:
  this.btnAddLand.setVisible(true);
  this.txtTimeRemaining.setVisible(true);
  this.txtTimeRemaining.setVisible(false);
  break;
case VIEW_LIMITED_DECK:
  this.deckArea.showSideboard(true);
  this.lblDeckName.setVisible(false);
  this.txtDeckName.setVisible(false);
  this.txtTimeRemaining.setVisible(false);
  break;

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

this.label.setVisible(false);
this.icon.setVisible(false);
this.textFieldEditable.setVisible(false);
  PanelNode.this.textFieldEditable.setVisible(false);
  tree.requestFocusInWindow();

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

numberField.setFont(Theme.SMALL_BOLD_FONT);
numberField.setHorizontalAlignment(JTextField.CENTER);
numberField.setVisible(false);
numberField.addKeyListener(new EscapeListener());
numberField.addActionListener(new ActionListener() {

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

this.textFieldRequest.setVisible(false);
panelHttpProtocol.setVisible(false);
this.textFieldHeader.setVisible(false);
this.radioHeader.setVisible(false);
  PanelAddressBar.this.textFieldRequest.setVisible(isVisible);
  panelHttpProtocol.setVisible(isVisible);
  PanelAddressBar.this.textFieldHeader.setVisible(isVisible);
  this.radioHeader.setVisible(isVisible);

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

AbstractNodeModel.this.getPanel().getEditable().setVisible(true);

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

this.panel.getEditable().setVisible(nodeModel.isEdited);
this.panel.getLabel().setVisible(!nodeModel.isEdited);

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-project-libraries-ui

public void hideLibrariesList() {
  libsPanel.setVisible(false);
  jLabel2.setVisible(false);
  createButton.setVisible(false);
  deleteButton.setVisible(false);
  jLabel3.setVisible(true);
  libraryLocation.setVisible(true);
}

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-project-ant-ui

public void enableVariableBasedSelection(boolean enable) {
  this.enableVariableBasedSelection = enable;
  rbVariable.setVisible(enableVariableBasedSelection);
  variablePath.setVisible(enableVariableBasedSelection);
  variablesButton.setVisible(enableVariableBasedSelection);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-xml-xam-ui

protected void initializeUI() {
  if (!mustNamespaceDiffer()) {
    namespaceLabel.setVisible(false);
    namespaceTextField.setVisible(false);
  }
}

代码示例来源:origin: igvteam/igv

public IndexGui() {
  this.igvTools = new IgvTools();
  initComponents();
  setTitle("Create Index");
  // Hide output file field for now
  this.outputLabel.setVisible(true);
  this.outputField.setVisible(true);
  this.outputButton.setVisible(true);
}

代码示例来源:origin: otros-systems/otroslogviewer

private void startEditing() {
 editor.setVisible(true);
 editor.setText(label.getText());
 editor.selectAll();
 len = editor.getText().length();
 dim = editor.getPreferredSize();
 editor.setMinimumSize(dim);
 remove(label);
 add(editor, 0);
 revalidate();
 editor.requestFocusInWindow();
}

相关文章

JTextField类方法