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);
private void btnOKActionPerformed(java.awt.event.ActionEvent evt) { this.userInput = "OK"; this.jScrollPane1.removeAll(); this.dispose(); }
private void btnCancelActionPerformed(java.awt.event.ActionEvent evt) { this.userInput = "CANCEL"; this.jScrollPane1.removeAll(); this.dispose(); }
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(); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
outlinesScrollPane.removeAll(); outlinesScrollPane = null;