class SplitPane extends Component with Container with Wrapper

A container with exactly two children. Arranges them side by side, either horizontally or vertically. Displays a draggable divider component between them that lets the user adjust the size ratio of the children.


  1. Wrapper
  2. Orientable
  3. Wrapper
  4. Oriented
  5. Container
  6. Component
  7. UIElement
  8. LazyPublisher
  9. Publisher
  10. Reactor
  11. Proxy
  12. AnyRef
  13. Any

Value Members

  1. var Mouse: mouse

  2. def background: Color

  3. def background_=(c: Color): Unit

  4. def border: Border

  5. def border_=(b: Border): Unit

  6. def bottomComponent: Component

  7. def bottomComponent_=(c: Component): Unit

  8. def bounds: Rectangle

  9. def contents: Seq[Component]

    The child components of this container

    The child components of this container.

  10. def contents_=(left: Component, right: Component): Unit

  11. def continuousLayout: Boolean

  12. def continuousLayout_=(b: Boolean): Unit

  13. def cursor: Cursor

  14. def cursor_=(c: Cursor): Unit

  15. def deafTo(ps: Publisher*): Unit

    Installed reaction won't receive events from the given publisher anylonger

    Installed reaction won't receive events from the given publisher anylonger.

    definition classes: Reactor
  16. def displayable: Boolean

  17. def dividerLocation: Int

  18. def dividerLocation_=(f: Double): Unit

  19. def dividerLocation_=(n: Int): Unit

  20. def dividerSize: Int

  21. def dividerSize_=(n: Int): Unit

  22. def enabled: Boolean

  23. def enabled_=(b: Boolean): Unit

  24. def equals(that: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    definition classes: Proxy ⇐ AnyRef ⇐ Any
  25. def focusable: Boolean

  26. def focusable_=(b: Boolean): Unit

  27. def font: Font

  28. def font_=(f: Font): Unit

  29. def foreground: Color

  30. def foreground_=(c: Color): Unit

  31. def hasFocus: Boolean

  32. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: Proxy ⇐ AnyRef ⇐ Any
  33. def ignoreRepaint: Boolean

  34. def ignoreRepaint_=(b: Boolean): Unit

  35. var initP: JComponent

  36. def inputVerifier: (SplitPane.this.type) ⇒ Boolean

  37. def inputVerifier_=(v: (SplitPane.this.type) ⇒ Boolean): Unit

  38. object keys extends Publisher

  39. def leftComponent: Component

  40. def leftComponent_=(c: Component): Unit

  41. def listenTo(ps: Publisher*): Unit

    Listen to the given publisher as long as deafTo isn't called for them

    Listen to the given publisher as long as deafTo isn't called for them.

    definition classes: Reactor
  42. def locale: Locale

  43. def location: Point

  44. def locationOnScreen: Point

  45. def maximumSize: Dimension

  46. def maximumSize_=(x: Dimension): Unit

  47. def minimumSize: Dimension

  48. def minimumSize_=(x: Dimension): Unit

  49. object mouse extends AnyRef

    Contains publishers for various mouse events

  50. def onFirstSubscribe(): Unit

  51. def onLastUnsubscribe(): Unit

  52. def oneTouchExpandable: Boolean

  53. def oneTouchExpandable_=(b: Boolean): Unit

  54. def opaque: Boolean

  55. def opaque_=(b: Boolean): Unit

  56. def orientation: Value

  57. def orientation_=(o: Value): Unit

  58. def paint(g: Graphics2D): Unit

  59. var peer: JSplitPane

    The underlying Swing peer

    The underlying Swing peer.

  60. def preferredSize: Dimension

  61. def preferredSize_=(xy: (Int, Int)): Unit

  62. def preferredSize_=(x: Dimension): Unit

  63. def publish(e: Event): Unit

    Notify all registered reactions

    Notify all registered reactions.

    definition classes: Publisher
  64. val reactions: Reactions

    All reactions of this reactor

    All reactions of this reactor.

    definition classes: Reactor
  65. def repaint(rect: Rectangle): Unit

  66. def repaint(): Unit

  67. def requestFocus(): Unit

  68. def requestFocusInWindow(): Boolean

  69. def resetToPreferredSizes(): Unit

  70. def resizeWeight: Double

  71. def resizeWeight_=(n: Double): Unit

  72. def revalidate(): Unit

  73. def rightComponent: Component

  74. def rightComponent_=(c: Component): Unit

  75. def self: Component

  76. def showing: Boolean

  77. def size: Dimension

  78. def size_=(xy: (Int, Int)): Unit

  79. def size_=(dim: Dimension): Unit

  80. def subscribe(listener: PartialFunction[Event, Unit]): Unit

  81. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

    definition classes: ComponentProxy ⇐ AnyRef ⇐ Any
  82. def toolkit: Toolkit

  83. def tooltip: String

  84. def tooltip_=(t: String): Unit

  85. def topComponent: Component

  86. def topComponent_=(c: Component): Unit

  87. def unsubscribe(listener: PartialFunction[Event, Unit]): Unit

  88. def visible: Boolean

  89. def visible_=(b: Boolean): Unit

  90. def xLayoutAlignment: Double

    Used by certain layout managers, e

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    definition classes: Component
  91. def xLayoutAlignment_=(x: Double): Unit

  92. def yLayoutAlignment: Double

  93. def yLayoutAlignment_=(y: Double): Unit

Instance constructors

  1. new SplitPane()

  2. new SplitPane(o: Value)

  3. new SplitPane(o: Value, left: Component, right: Component)