32 import java.beans.ConstructorProperties;
33 import javax.swing.plaf.*;
34 import javax.accessibility.*;
35
36 import java.awt.*;
37
38 import java.io.ObjectOutputStream;
39 import java.io.ObjectInputStream;
40 import java.io.IOException;
41
42
43
44 /**
45 * <code>JSplitPane</code> is used to divide two (and only two)
46 * <code>Component</code>s. The two <code>Component</code>s
47 * are graphically divided based on the look and feel
48 * implementation, and the two <code>Component</code>s can then be
49 * interactively resized by the user.
50 * Information on using <code>JSplitPane</code> is in
51 * <a
52 href="http://java.sun.com/docs/books/tutorial/uiswing/components/splitpane.html">How to Use Split Panes</a> in
53 * <em>The Java Tutorial</em>.
54 * <p>
55 * The two <code>Component</code>s in a split pane can be aligned
56 * left to right using
57 * <code>JSplitPane.HORIZONTAL_SPLIT</code>, or top to bottom using
58 * <code>JSplitPane.VERTICAL_SPLIT</code>.
59 * The preferred way to change the size of the <code>Component</code>s
60 * is to invoke
61 * <code>setDividerLocation</code> where <code>location</code> is either
62 * the new x or y position, depending on the orientation of the
63 * <code>JSplitPane</code>.
64 * <p>
65 * To resize the <code>Component</code>s to their preferred sizes invoke
66 * <code>resetToPreferredSizes</code>.
67 * <p>
68 * When the user is resizing the <code>Component</code>s the minimum
69 * size of the <code>Components</code> is used to determine the
70 * maximum/minimum position the <code>Component</code>s
71 * can be set to. If the minimum size of the two
72 * components is greater than the size of the split pane the divider
|
32 import java.beans.ConstructorProperties;
33 import javax.swing.plaf.*;
34 import javax.accessibility.*;
35
36 import java.awt.*;
37
38 import java.io.ObjectOutputStream;
39 import java.io.ObjectInputStream;
40 import java.io.IOException;
41
42
43
44 /**
45 * <code>JSplitPane</code> is used to divide two (and only two)
46 * <code>Component</code>s. The two <code>Component</code>s
47 * are graphically divided based on the look and feel
48 * implementation, and the two <code>Component</code>s can then be
49 * interactively resized by the user.
50 * Information on using <code>JSplitPane</code> is in
51 * <a
52 href="http://docs.oracle.com/javase/tutorial/uiswing/components/splitpane.html">How to Use Split Panes</a> in
53 * <em>The Java Tutorial</em>.
54 * <p>
55 * The two <code>Component</code>s in a split pane can be aligned
56 * left to right using
57 * <code>JSplitPane.HORIZONTAL_SPLIT</code>, or top to bottom using
58 * <code>JSplitPane.VERTICAL_SPLIT</code>.
59 * The preferred way to change the size of the <code>Component</code>s
60 * is to invoke
61 * <code>setDividerLocation</code> where <code>location</code> is either
62 * the new x or y position, depending on the orientation of the
63 * <code>JSplitPane</code>.
64 * <p>
65 * To resize the <code>Component</code>s to their preferred sizes invoke
66 * <code>resetToPreferredSizes</code>.
67 * <p>
68 * When the user is resizing the <code>Component</code>s the minimum
69 * size of the <code>Components</code> is used to determine the
70 * maximum/minimum position the <code>Component</code>s
71 * can be set to. If the minimum size of the two
72 * components is greater than the size of the split pane the divider
|