Code example for JScrollPane

Methods: setVisible

0
	 * show the geo list 
	 */ 
	public void setGeoTreeVisible() { 
		splitPane.setDividerSize(8);
		splitPane.setDividerLocation(dividerLocation);
		listScroller.setVisible(true);
		splitPane.repaint();
 
	} 
 
	/** 
	 * hide the geo list 
	 */ 
	public void setGeoTreeNotVisible() { 
 
		listScroller.setVisible(false);
		dividerLocation = splitPane.getDividerLocation();
		splitPane.setDividerSize(0);
		splitPane.repaint();
 
Contextual code suggestions in your IDE  Get Codota for Java