Code example for JScrollPane

Methods: getMinimumSizesetPreferredSize

0
     * @param horizontalPolicy 
     *            the horizontal scroll policy 
     * @return a JScrollPane containing the specified component 
     */ 
    protected JScrollPane makeScrollPane(Component comp, int verticalPolicy, int horizontalPolicy) {
        JScrollPane pane = new JScrollPane(comp, verticalPolicy, horizontalPolicy);
        pane.setPreferredSize(pane.getMinimumSize());
        return pane;
    } 
 
    @Override 
    public String getStaticLabel() {
        return JMeterUtils.getResString(getLabelResource()); 
    } 
 
    /** 
     * Compute Anchor value to find reference in documentation for a particular component 
     * @return String anchor 
     */ 
    @Override