Code example for JScrollPane

Methods: getViewport

0
	 *  
	 * For more information see class documentation. 
	 */ 
	public void run() { 
		if (scrollPane != null)
			scrollPane.getViewport().setViewPosition(point);
		else 
			scrollablePanel.getViewport().setViewPosition(point);
	} 
}