Here you can find the source of setScrollpane(JScrollPane scrollpane)
Parameter | Description |
---|---|
scrollpane | a parameter |
public static void setScrollpane(JScrollPane scrollpane)
//package com.java2s; //License from project: Open Source License import javax.swing.JScrollPane; public class Main { /**// w ww . ja v a 2s . c om * OS X shows scrollpanes even if there is no data to scroll. This method * reads the scrollbar.horizontal property created by this program to * determine which scrollpane style to use. * * @param scrollpane */ public static void setScrollpane(JScrollPane scrollpane) { scrollpane.setHorizontalScrollBarPolicy(Integer.parseInt(System.getProperty("scrollbar.horizontal"))); scrollpane.setVerticalScrollBarPolicy(Integer.parseInt(System.getProperty("scrollbar.vertical"))); } }