/[classpath]/classpath/javax/swing/JScrollPane.java
ViewVC logotype

Diff of /classpath/javax/swing/JScrollPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by mark, Sat Jul 2 20:32:48 2005 UTC revision 1.25 by rabbit78, Tue Jul 5 12:05:59 2005 UTC
# Line 54  import javax.swing.plaf.ScrollPaneUI; Line 54  import javax.swing.plaf.ScrollPaneUI;
54  import javax.swing.plaf.UIResource;  import javax.swing.plaf.UIResource;
55    
56  /**  /**
57     * A component that embeds another component and enables it to be scrolled
58     * both in horizontal and vertical direction.
59     *
60   * <table>   * <table>
61   * <tr><th>Property                    </th><th>Stored in       </th><th>Bound?</th></tr>   * <tr><th>Property                    </th><th>Stored in       </th><th>Bound?</th></tr>
62   * <tr><td>columnHeader                </td><td>scrollPane      </td><td>yes   </td></tr>   * <tr><td>columnHeader                </td><td>scrollPane      </td><td>yes   </td></tr>
# Line 564  public class JScrollPane Line 567  public class JScrollPane
567    }    }
568    
569    
570      /**
571       * Creates a new <code>JScrollPane</code> without a view. The scrollbar
572       * policy is set to {@link #VERTICAL_SCROLLBAR_AS_NEEDED} and
573       * {@link #HORIZONTAL_SCROLLBAR_AS_NEEDED}.
574       *
575       * @param view the component that is embedded inside the JScrollPane
576       */
577    public JScrollPane()    public JScrollPane()
578    {    {
579      this(null);      this(null);
580    }    }
581        
582      /**
583       * Creates a new <code>JScrollPane</code> that embeds the specified
584       * <code>view</code> component, displaying vertical and horizontal scrollbars
585       * as needed.
586       *
587       * @param view the component that is embedded inside the JScrollPane
588       */
589    public JScrollPane(Component view)    public JScrollPane(Component view)
590    {    {
591      this(view,      this(view,
# Line 576  public class JScrollPane Line 593  public class JScrollPane
593           HORIZONTAL_SCROLLBAR_AS_NEEDED);           HORIZONTAL_SCROLLBAR_AS_NEEDED);
594    }    }
595    
596      /**
597       * Creates a new <code>JScrollPane</code> without a view; The scrollbar
598       * policies are set to <code>vsbPolicy</code> and <code>hsbPolicy</code>.
599       *
600       * @param vsbPolicy the vertical scrollbar policy to set
601       * @param hsbPolicy the vertical scrollbar policy to set
602       *
603       * @see {@link ScrollPaneConstants#HORIZONTAL_SCROLLBAR_ALWAYS}
604       * @see {@link ScrollPaneConstants#HORIZONTAL_SCROLLBAR_AS_NEEDED}
605       * @see {@link ScrollPaneConstants#HORIZONTAL_SCROLLBAR_NEVER}
606       * @see {@link ScrollPaneConstants#VERTICAL_SCROLLBAR_ALWAYS}
607       * @see {@link ScrollPaneConstants#VERTICAL_SCROLLBAR_AS_NEEDED}
608       * @see {@link ScrollPaneConstants#VERTICAL_SCROLLBAR_NEVER}
609       */
610    public JScrollPane(int vsbPolicy, int hsbPolicy)    public JScrollPane(int vsbPolicy, int hsbPolicy)
611    {    {
612      this(null, vsbPolicy, hsbPolicy);      this(null, vsbPolicy, hsbPolicy);
613    }    }
614    
615      /**
616       * Creates a new <code>JScrollPane</code> that embeds the specified
617       * <code>view</code> component; The scrollbar
618       * policies are set to <code>vsbPolicy</code> and <code>hsbPolicy</code>.
619       *
620       * @param vsbPolicy the vertical scrollbar policy to set
621       * @param hsbPolicy the vertical scrollbar policy to set
622       *
623       * @see {@link ScrollPaneConstants#HORIZONTAL_SCROLLBAR_ALWAYS}
624       * @see {@link ScrollPaneConstants#HORIZONTAL_SCROLLBAR_AS_NEEDED}
625       * @see {@link ScrollPaneConstants#HORIZONTAL_SCROLLBAR_NEVER}
626       * @see {@link ScrollPaneConstants#VERTICAL_SCROLLBAR_ALWAYS}
627       * @see {@link ScrollPaneConstants#VERTICAL_SCROLLBAR_AS_NEEDED}
628       * @see {@link ScrollPaneConstants#VERTICAL_SCROLLBAR_NEVER}
629       */
630    public JScrollPane(Component view, int vsbPolicy, int hsbPolicy)    public JScrollPane(Component view, int vsbPolicy, int hsbPolicy)
631    {    {
632      scrollListener = createScrollListener();      scrollListener = createScrollListener();

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26