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

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

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

JTextArea.setVisible介绍

暂无

代码示例

代码示例来源:origin: Multibit-Legacy/multibit-hd

@Override
 public void run() {
  deviceDisplayTextArea.setVisible(visible);
 }
});

代码示例来源:origin: robward-scisys/sldeditor

/**
 * Sets the field visible.
 *
 * @param visible the new visible state
 */
@Override
public void setVisible(boolean visible) {
  if (textArea != null) {
    textArea.setVisible(visible);
  }
}

代码示例来源:origin: robward-scisys/sldeditor

/**
 * Sets the field visible.
 *
 * @param visible the new visible state
 */
@Override
public void setVisible(boolean visible) {
  if (textField != null) {
    textField.setVisible(visible);
  }
}

代码示例来源:origin: robward-scisys/sldeditor

/**
 * Sets the field visible.
 *
 * @param visible the new visible state
 */
@Override
public void setVisible(boolean visible) {
  if (textField != null) {
    textField.setVisible(visible);
  }
}

代码示例来源:origin: MegaMek/megamek

public void setGeneratedUnits(List<MechSummary> list) {
    generatedUnits = list;
    txtNoFormation.setVisible(list == null || list.isEmpty());
  }
}

代码示例来源:origin: triplea-game/triplea

void setTitle(final String title) {
 this.title.setText(title);
 this.title.setVisible(true);
}

代码示例来源:origin: Multibit-Legacy/multibit-hd

/**
 * <p>Set the visibility of the display text area</p>
 *
 * @param visible True if the display should be visible
 */
public void setDisplayVisible(final boolean visible) {
 if (SwingUtilities.isEventDispatchThread()) {
  deviceDisplayTextArea.setVisible(visible);
 } else {
  SwingUtilities.invokeLater(
   new Runnable() {
    @Override
    public void run() {
     deviceDisplayTextArea.setVisible(visible);
    }
   });
 }
}

代码示例来源:origin: jsettlers/settlers-remake

private void setChatVisible(boolean isVisible) {
  chatArea.setVisible(isVisible);
  chatInputField.setVisible(isVisible);
  sendChatMessageButton.setVisible(isVisible);
  chatArea.setText("");
  chatInputField.setText("");
}

代码示例来源:origin: stackoverflow.com

JTextArea ta = new JTextArea();
ta.setVisible(true);
ta.setEnabled(true);
ta.setEditable(false);

JScrollPane sp = new JScrollPane(ta);
textareapanel.add(sp);

代码示例来源:origin: SSilence/scotty

private void domainRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_domainRadioButtonActionPerformed
  domainLabel.setVisible(true);
  domainTextField.setVisible(true);
  realmLabel.setVisible(false);
  realmTextArea.setVisible(false);
}//GEN-LAST:event_domainRadioButtonActionPerformed

代码示例来源:origin: SSilence/scotty

private void basicRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_basicRadioButtonActionPerformed
  domainLabel.setVisible(false);
  domainTextField.setVisible(false);
  realmLabel.setVisible(true);
  realmTextArea.setVisible(true);
}//GEN-LAST:event_basicRadioButtonActionPerformed

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-dataconnectivity

public synchronized void setExpanded( boolean newExpanded ) {
  expandButton.setText(null) ;
  if ( newExpanded ) {
    shortSql.setVisible(false) ;
    longSql.setColumns(this.width_long) ;
    longSql.setVisible(true) ;
    expandButton.setIcon( openIcon ) ;
    expanded = true ;
  } else {
    shortSql.setVisible(true) ;
    longSql.setColumns(this.width_short) ;
    longSql.setVisible(false) ;
    expandButton.setIcon( closedIcon ) ;
    expanded = false ;
  }
}

代码示例来源:origin: stackoverflow.com

public class MyView extends JFrame {

  public MyView() {
    JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.setSize(800, 600);
    JTextArea enterName1 = new JTextArea(50, 50);
    enterName1.setRows(20);
    enterName1.setColumns(1);
    panel.add(enterName1, BorderLayout.CENTER);
    enterName1.setVisible(true);
    panel.setVisible(true);
    this.add(panel);
    this.setVisible(true);
    this.setSize(800, 600);
  }
}

代码示例来源:origin: senbox-org/snap-desktop

private void showLandCoverClasses(final boolean flag) {
  validLandCoverClassesScroll.setVisible(flag);
  validLandCoverClassesLabel.setVisible(flag);
  validLandCoverClassesList.setVisible(flag);
  validPixelExpressionLabel.setVisible(!flag);
  validPixelExpressionText.setVisible(!flag);
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-common

private NoSelectedServerWarning(J2eeModule.Type[] moduleTypes, Profile j2eeProfile) {
  this.j2eeProfile = j2eeProfile;
  
  initComponents();
  serverList.setModel(new ServerListModel(moduleTypes, j2eeProfile));
  if (serverList.getModel().getSize() > 0) {
    jTextArea2.setVisible(false);
  }
  initServerList();
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-jsf

public final void setVisibleBeanDescription(boolean visible) {
  jLabelDesc.setVisible(visible);
  jScrollPaneDesc.setVisible(visible);
  jTextAreaDesc.setVisible(visible);
  repaint();
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-samples

/** Creates new form PanelProjectLocationVisual */
public JavaEESamplesPanelVisual(JavaEESamplesWizardPanel panel, boolean withDB, boolean specifyPrjName) {
  initComponents();
  this.panel = panel;
  this.withDB = withDB;
  // Register listener on the textFields to make the automatic updates
  projectNameTextField.getDocument().addDocumentListener(this);
  projectLocationTextField.getDocument().addDocumentListener(this);
  txtDBName.getDocument().addDocumentListener(this);
  projectNameTextField.setEditable(specifyPrjName);
  projectNameTextField.setEnabled(specifyPrjName);
  if (!withDB){
    txtDBName.setVisible(false);
    lblDBName.setVisible(false);
    txtDBLocation.setVisible(false);
    lblDBLocation.setVisible(false);
    infoDBLocation.setVisible(false);
  }
}

代码示例来源:origin: omegat-org/omegat

private void init2(boolean sourceEncodingVariable, boolean targetEncodingVariable, String hint) {
  getRootPane().setDefaultButton(addOrUpdateButton);
  this.sourceEncodingField.setEnabled(sourceEncodingVariable);
  this.targetEncodingField.setEnabled(targetEncodingVariable);
  ((TitledBorder) tfnpPanel.getBorder()).setTitle(OStrings
      .getString("INSTANCEEDITOR_Target_Filename_Pattern"));
  sourceFilenameMaskField.setText("*.*");
  targetFilenamePatternField.setText("${filename}");
  hintTextArea.setText(hint);
  hintTextArea.setVisible(!StringUtil.isEmpty(hint));
  StaticUIUtils.setEscapeClosable(this);
  pack();
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject

/**
 * Creates new form ProjectCopyPanel
 */
public DefaultProjectCopyPanel(ProgressHandle handle, Project project, boolean isMove) {
  this.project = project;
  this.isMove = isMove;
  this.handle = handle;
  
  
  initComponents();
  setProject();
  projectName.getDocument().addDocumentListener(this);
  projectLocation.getDocument().addDocumentListener(this);
  
  if (isMove) {
    nameLabel.setVisible(false);
    projectName.setVisible(false);
    warningTextArea.setVisible(false);
  }
  
  if (Boolean.getBoolean("org.netbeans.modules.project.uiapi.DefaultProjectOperations.showProgress")) {
    ((CardLayout) progress.getLayout()).show(progress, "progress"); // NOI18N
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-common

private void jButtonAddServerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddServerActionPerformed
  ServerListModel model = (ServerListModel) serverList.getModel();
  String selectedValue = (String) serverList.getSelectedValue();
  boolean wasEmpty = (model.getSize() == 0);
  String newSelectedValue = ServerManager.showAddServerInstanceWizard();
  if (newSelectedValue != null) {
    selectedValue = newSelectedValue;
  }
  model.refreshModel();
  boolean isEmpty = (model.getSize() == 0);
  if (wasEmpty != isEmpty) {
    jTextArea2.setVisible(isEmpty);
  }
  if (selectedValue != null) {
    // if the last selected server instance still exists, select it again
    serverList.setSelectedValue(selectedValue, true);
  } else {
    serverList.clearSelection();
  }
}//GEN-LAST:event_jButtonAddServerActionPerformed

相关文章

JTextArea类方法