CS 121 Lecture Notes - Lecture 73: Fiber Bundle
• Split Panes:
➢ A container that displays 2 components separated by a moveable divider bar.
➢ Depending on how split pane is set up, the 2 components are displayed:
o Side by side
o One on top of the other.
➢ In Java, we can create a split pane using the JSplitPane class.
o The configuration of a split pane:
o Orientation of a split pane is set using constants in JSplitPane class.
▪ Can be set when container is created or explicitly later on.
❖ The constant HORIZONTAL_SPLIT specifies that components be
displayed side by side.
❖ The constant VERTICAL_SPLIT specifies that components be
displayed one on top of the other.
o Location of divider bar determines how much visible area is devoted to
each component in the split pane.
▪ Divider bar can be dragged across container area using the mouse.
find more resources at oneclass.com
find more resources at oneclass.com