javax.swing.JScrollPane.setEnabled()方法的使用及代码示例

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

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

JScrollPane.setEnabled介绍

暂无

代码示例

代码示例来源:origin: winder/Universal-G-Code-Sender

private void showCommandTable(Boolean enabled) {
  if (enabled && (backend.isConnected() && !backend.isIdle())) {
    displayErrorDialog(Localization.getString("mainWindow.error.showTableActive"));
    showCommandTableCheckBox.setSelected(false);
    return;
  }
  this.commandTable.clear();
  this.bottomTabbedPane.setEnabledAt(1, enabled);
  commandTableScrollPane.setEnabled(enabled);
  if (!enabled) {
    this.bottomTabbedPane.setSelectedIndex(0);
  } else {
    this.bottomTabbedPane.setSelectedIndex(1);
  }
}

代码示例来源:origin: net.sourceforge.javydreamercsw/Client-UI

/**
 * @return the conn
 */
public static DatabaseConnection getConnection() {
  treePane.setEnabled(conn != null);
  return conn;
}

代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-core

@Override
public void setEnabled(boolean enabled) {
  super.setEnabled(enabled);
  fieldScroll.setEnabled(enabled);
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
@Override
public void setEnabled(boolean aValue) {
  super.setEnabled(aValue);
}

代码示例来源:origin: fr.ifremer/isis-fish

@Override
  public void processDataBinding() {
    $JScrollPane2.setEnabled(isActive());
  }
});

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-javafx2-project

private void refreshComponents() {
  boolean newClass = radioButtonNewClass.isSelected();
  labelClassName.setEnabled(newClass);
  labelSourceRoot.setEnabled(newClass);
  labelPackage.setEnabled(newClass);
  labelFileLocation.setEnabled(newClass);
  textFieldClassName.setEnabled(newClass);
  comboBoxSourceRoot.setEnabled(newClass);
  comboBoxPackage.setEnabled(newClass);
  textFieldFileLocation.setEnabled(newClass);
  listAppClasses.setEnabled(!newClass);
  listAppClassesScrollPane.setEnabled(!newClass);
}

代码示例来源:origin: fr.ifremer/isis-fish

@Override
  public void processDataBinding() {
    $JScrollPane1.setEnabled(isActive());
  }
});

代码示例来源:origin: org.zaproxy/zap

/**
 * This method initializes jScrollPane    
 *     
 * @return javax.swing.JScrollPane    
 */    
private JScrollPane getJScrollPane() {
  if (jScrollPane == null) {
    jScrollPane = new JScrollPane();
    jScrollPane.setViewportView(getTableFilter());
    jScrollPane.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));
    jScrollPane.setEnabled(false);
  }
  return jScrollPane;
}
/**

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

@Override
 public void actionPerformed(ActionEvent actionEvent) {
  boolean enabled = enabledCheckBox.isSelected();
  progressBar.setEnabled(enabled);
  contentScrollPane.setEnabled(enabled);
  contentArea.setEnabled(enabled);
  nameLabel.setEnabled(enabled);
  titleLabel.setEnabled(enabled);
 }
});

代码示例来源:origin: bcdev/beam

@Override
  public void propertyChange(PropertyChangeEvent evt) {
    filterLabel.setEnabled((Boolean) evt.getNewValue());
    filterField.setEnabled((Boolean) evt.getNewValue());
    infoLabel.setEnabled((Boolean) evt.getNewValue());
    crsList.setEnabled((Boolean) evt.getNewValue());
    crsListScrollPane.setEnabled((Boolean) evt.getNewValue());
    infoArea.setEnabled((Boolean) evt.getNewValue());
    infoAreaScrollPane.setEnabled((Boolean) evt.getNewValue());
  }
});

代码示例来源:origin: net.sourceforge.javydreamercsw/Client-UI

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
  treePane = new javax.swing.JScrollPane();
  treePane.setEnabled(false);
  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
  this.setLayout(layout);
  layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
      .addContainerGap()
      .addComponent(treePane, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
      .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  );
  layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
      .addContainerGap()
      .addComponent(treePane, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
      .addContainerGap())
  );
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables

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

scrollPane.setEnabled(true);
scrollPane.setWheelScrollingEnabled(true);

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@Override
public void setEnabled(boolean newValue) {
  super.setEnabled(newValue);
  editor.setEnabled(newValue);
  scrollPane.setEnabled(newValue);
}

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

public class Frame extends JFrame implements ActionListener{
        public JTextArea Out = new JTextArea();

        public void Output(){ // Creating the JTextArea
          JScrollPane sp = new JScrollPane(Out);
/*I recommend insterting the JTextArea in a JScrollPane in case the text is 
really long.*/
// The LineWrap and WrapStyleWord is to make sure the words will fit in the JTA
          Out.setLineWrap(true);
          Out.setWrapStyleWord(false);
          Out.setEditable(false); 
// The person will be able to select it but not edit the output
          sp.setBounds(15, 136, 260, 50);
          getContentPane().add(sp);
          sp.setEnabled(true);
        }
        public Frame(){
          super("My Prog");
          setLayout(null);
          Output();
        }
        @Override
        public void actionPerformed(ActionEvent e){
          if(....){
             Out.setText(input); //When finiched, it will print it
          }
        }
    }

代码示例来源:origin: org.openrdf/sesame

/**
 * Enables/disables components according to which items
 * are selected.
 **/
protected void _enableDisableComponents() {
  int selectedSailIdx = _sailTable.getSelectedRow();
  if (selectedSailIdx == -1) {
    // No Sail selected
    _title.setEnabled(false);
    _scrollPane.setEnabled(false);
    _scrollPane.getViewport().setBackground(getBackground());
    _addButton.setEnabled(false);
    _removeButton.setEnabled(false);
  }
  else {
    // Sail selected
    _title.setEnabled(true);
    _scrollPane.setEnabled(true);
    _scrollPane.getViewport().setBackground(Color.white);
    _addButton.setEnabled(true);
    int selectedParamIdx = _parameterTable.getSelectedRow();
    _removeButton.setEnabled(selectedParamIdx >= 0);
  }
}

代码示例来源:origin: org.zaproxy/zap

private void useClientCertificateCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_useClientCertificateCheckBoxActionPerformed
  // The enable unsafe SSL renegotiation checkbox is independent of using a client certificate (although commonly related)
  // enableUnsafeSSLRenegotiationCheckBox.setEnabled(useClientCertificateCheckBox.isSelected());
  //keyStore tab
  certificatejTabbedPane.setEnabled(useClientCertificateCheckBox.isSelected() );
  keyStoreScrollPane.setEnabled(useClientCertificateCheckBox.isSelected());
  keyStoreList.setEnabled(useClientCertificateCheckBox.isSelected());
  aliasScrollPane.setEnabled(useClientCertificateCheckBox.isSelected());
  aliasTable.setEnabled(useClientCertificateCheckBox.isSelected());
  deleteButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  setActiveButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  showAliasButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  //pkcs12 tab
  fileTextField.setEnabled(useClientCertificateCheckBox.isSelected() );
  browseButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  pkcs12PasswordField.setEnabled(useClientCertificateCheckBox.isSelected() );
  addPkcs12Button.setEnabled(useClientCertificateCheckBox.isSelected() );
  //pkcs11 tab
  driverComboBox.setEnabled(useClientCertificateCheckBox.isSelected() );
  driverButton.setEnabled(useClientCertificateCheckBox.isSelected() );
  pkcs11PasswordField.setEnabled(useClientCertificateCheckBox.isSelected() );
  addPkcs11Button.setEnabled(useClientCertificateCheckBox.isSelected() );
  usePkcs11ExperimentalSliSupportCheckBox.setEnabled(useClientCertificateCheckBox.isSelected());
  usePkcs11ExperimentalSliSupportCheckBox.setSelected(Model.getSingleton().getOptionsParam().getExperimentalFeaturesParam().isExerimentalSliSupportEnabled());
  //actual certificate fields
  certificateTextField.setEnabled(useClientCertificateCheckBox.isSelected() );
  showActiveCertificateButton.setEnabled(useClientCertificateCheckBox.isSelected() );
}//GEN-LAST:event_useClientCertificateCheckBoxActionPerformed

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-ruby-platform

newPanel.setEnabled(enabled);
newList.setEnabled(enabled);
newSP.setEnabled(enabled);
searchNewLbl.setEnabled(enabled);
searchNewText.setEnabled(enabled);
updatedPanel.setEnabled(enabled);
updatedList.setEnabled(enabled);
updatedSP.setEnabled(enabled);
searchUpdatedLbl.setEnabled(enabled);
searchUpdatedText.setEnabled(enabled);
installedSP.setEnabled(enabled);
searchInstLbl.setEnabled(enabled);
searchInstText.setEnabled(enabled);

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

jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
jScrollPane1.setEnabled(false);
jScrollPane1.setOpaque(false);

代码示例来源:origin: net.sf.taverna.t2.ui-impl/httpproxy-config

nonProxyHostsArea.setEnabled(editingEnabled);
nonProxyHostsArea.setEditable(editingEnabled);
nonProxyScrollPane.setEnabled(editingEnabled);

代码示例来源:origin: dcaoyuan/nbscala

private void conditionCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_conditionCheckBoxActionPerformed
  boolean isSelected = conditionCheckBox.isSelected();
  spCondition.setEnabled(isSelected);
  tfCondition.setEnabled(isSelected);

相关文章

JScrollPane类方法