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

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

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

JScrollPane.removeAll介绍

暂无

代码示例

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

JScrollPane scroll; //-->> somewhere in your class
public void lyricPrinter(){

  System.out.println(lyrics);
  JTextArea textarea = new JTextArea(lyrics);
  textarea.setBackground(Color.LIGHT_GRAY);
  textarea.setEditable(false);
//JLabel textarea = new JLabel("not sure what this is...");
//textarea.setText("<html>"+lyrics+"</html>");

 **scroll = new JScrollPane (textarea,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
scroll.removeAll();**

//GUI.frame.remove(scroll);
GUI.frame.add(scroll);
GUI.frame.setVisible(true);

代码示例来源:origin: org.cytoscape/work-swing-impl

private void btnOKActionPerformed(java.awt.event.ActionEvent evt) {
  this.userInput = "OK";
  this.jScrollPane1.removeAll();
  this.dispose();
}

代码示例来源:origin: org.cytoscape/work-swing-impl

private void btnCancelActionPerformed(java.awt.event.ActionEvent evt) {
  this.userInput = "CANCEL";
  this.jScrollPane1.removeAll();
  this.dispose();
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-ui

private void hideSequence() {
//        jScrollPaneBottom.setVisible(false);
    jSplitPane.setDividerSize(0);
    jSplitPane.setBottomComponent(null);
    if (jScrollPaneSequence != null) {
      if (jScrollPaneSequence.getComponentCount() > 0) {
        jScrollPaneSequence.removeAll();
      }
      jScrollPaneSequence = null;
    }
    jXTreeTable = null;
    //System.gc();
  }

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

/**
 * The aggregate components which compise the combo box are
 * unregistered and uninitialized. This method is called as part of the
 * UI uninstallation process.
 */
protected void uninstallComponents() {
  iconLabel = null;
  errorMessage = null;
  closeButton = null;
  reportButton = null;
  detailButton.removeActionListener(detailListener);
  detailButton = null;
  details.setTransferHandler(null);
  details = null;
  detailsScrollPane.removeAll();
  detailsScrollPane = null;
  detailsPanel.setLayout(null);
  detailsPanel.removeAll();
  detailsPanel = null;
  copyToClipboardButton.removeActionListener(copyToClipboardListener);
  copyToClipboardButton = null;
  pane.removeAll();
  pane.setLayout(null);
  pane.setBorder(null);
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
 * The aggregate components which compise the combo box are
 * unregistered and uninitialized. This method is called as part of the
 * UI uninstallation process.
 */
protected void uninstallComponents() {
  iconLabel = null;
  errorMessage = null;
  closeButton = null;
  reportButton = null;
  detailButton.removeActionListener(detailListener);
  detailButton = null;
  details.setTransferHandler(null);
  details = null;
  detailsScrollPane.removeAll();
  detailsScrollPane = null;
  detailsPanel.setLayout(null);
  detailsPanel.removeAll();
  detailsPanel = null;
  copyToClipboardButton.removeActionListener(copyToClipboardListener);
  copyToClipboardButton = null;
  pane.removeAll();
  pane.setLayout(null);
  pane.setBorder(null);
}

代码示例来源:origin: org.swinglabs.swingx/swingx-core

/**
 * The aggregate components which compise the combo box are
 * unregistered and uninitialized. This method is called as part of the
 * UI uninstallation process.
 */
protected void uninstallComponents() {
  iconLabel = null;
  errorMessage = null;
  closeButton = null;
  reportButton = null;
  detailButton.removeActionListener(detailListener);
  detailButton = null;
  details.setTransferHandler(null);
  details = null;
  detailsScrollPane.removeAll();
  detailsScrollPane = null;
  detailsPanel.setLayout(null);
  detailsPanel.removeAll();
  detailsPanel = null;
  copyToClipboardButton.removeActionListener(copyToClipboardListener);
  copyToClipboardButton = null;
  pane.removeAll();
  pane.setLayout(null);
  pane.setBorder(null);
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * The aggregate components which compise the combo box are
 * unregistered and uninitialized. This method is called as part of the
 * UI uninstallation process.
 */
protected void uninstallComponents() {
  iconLabel = null;
  errorMessage = null;
  closeButton = null;
  reportButton = null;
  detailButton.removeActionListener(detailListener);
  detailButton = null;
  details.setTransferHandler(null);
  details = null;
  detailsScrollPane.removeAll();
  detailsScrollPane = null;
  detailsPanel.setLayout(null);
  detailsPanel.removeAll();
  detailsPanel = null;
  copyToClipboardButton.removeActionListener(copyToClipboardListener);
  copyToClipboardButton = null;
  pane.removeAll();
  pane.setLayout(null);
  pane.setBorder(null);
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * The aggregate components which compise the combo box are
 * unregistered and uninitialized. This method is called as part of the
 * UI uninstallation process.
 */
protected void uninstallComponents() {
  iconLabel = null;
  errorMessage = null;
  closeButton = null;
  reportButton = null;
  detailButton.removeActionListener(detailListener);
  detailButton = null;
  details.setTransferHandler(null);
  details = null;
  detailsScrollPane.removeAll();
  detailsScrollPane = null;
  detailsPanel.setLayout(null);
  detailsPanel.removeAll();
  detailsPanel = null;
  copyToClipboardButton.removeActionListener(copyToClipboardListener);
  copyToClipboardButton = null;
  pane.removeAll();
  pane.setLayout(null);
  pane.setBorder(null);
}

代码示例来源:origin: us.ihmc/SensorProcessing

/**
 * Specifies the SpacialDisplay object that is to be viewed.
 *
 * @param display The SpacialDisplay being viewed.
 */
public void setDisplay(SpacialDisplay display) {
  if (this.display != null) {
    this.display.removeMouseListener(this);
    this.display.removeMouseMotionListener(this);
    scrollPane.removeAll();
  }
  this.display = display;
  this.homePixelPerMeters = display.getPixelsPerMeter();
  display.addMouseListener(this);
  display.addMouseMotionListener(this);
  scrollPane.getViewport().setView(display);
}

代码示例来源:origin: org.icepdf.os/icepdf-viewer

outlinesScrollPane.removeAll();
outlinesScrollPane = null;

相关文章

JScrollPane类方法