class ScrollPane extends Component with Container

Can have at most a single child component, which will be put inside a canvas (the viewport) that can be scrolled.


  1. Container
  2. Component
  3. UIElement
  4. LazyPublisher
  5. Publisher
  6. Reactor
  7. Proxy
  8. AnyRef
  9. 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 bounds: Rectangle

  7. def columnHeaderView: Option[Component]

  8. def columnHeaderView_=(c: Option[Component]): Unit

  9. def columnHeaderView_=(c: Component): Unit

  10. def contents: Seq[Component]

    The child components of this container

    The child components of this container.

  11. def contents_=(c: Component): Unit

    Sets the single child

    Sets the single child.

  12. def cursor: Cursor

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

  14. 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
  15. def displayable: Boolean

  16. def enabled: Boolean

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

  18. 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
  19. def focusable: Boolean

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

  21. def font: Font

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

  23. def foreground: Color

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

  25. def hasFocus: Boolean

  26. 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
  27. def horizontalScrollBar: ScrollBar

  28. def horizontalScrollBarPolicy: Value

  29. def horizontalScrollBarPolicy_=(p: Value): Unit

  30. def ignoreRepaint: Boolean

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

  32. var initP: JComponent

  33. def inputVerifier: (ScrollPane.this.type) ⇒ Boolean

  34. def inputVerifier_=(v: (ScrollPane.this.type) ⇒ Boolean): Unit

  35. object keys extends Publisher

  36. 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
  37. def locale: Locale

  38. def location: Point

  39. def locationOnScreen: Point

  40. def maximumSize: Dimension

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

  42. def minimumSize: Dimension

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

  44. object mouse extends AnyRef

    Contains publishers for various mouse events

  45. def onFirstSubscribe(): Unit

  46. def onLastUnsubscribe(): Unit

  47. def opaque: Boolean

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

  49. def paint(g: Graphics2D): Unit

  50. var peer: JScrollPane

    The underlying Swing peer

    The underlying Swing peer.

  51. def preferredSize: Dimension

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

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

  54. def publish(e: Event): Unit

    Notify all registered reactions

    Notify all registered reactions.

    definition classes: Publisher
  55. val reactions: Reactions

    All reactions of this reactor

    All reactions of this reactor.

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

  57. def repaint(): Unit

  58. def requestFocus(): Unit

  59. def requestFocusInWindow(): Boolean

  60. def revalidate(): Unit

  61. def rowHeaderView: Option[Component]

    The component being displayed in this pane's row header

    The component being displayed in this pane's row header.

    If you want to create a row header for lists or tables, you probably want to let the row header be a list view with the same row height as the viewport component.

  62. def rowHeaderView_=(c: Option[Component]): Unit

  63. def rowHeaderView_=(c: Component): Unit

  64. def self: Component

  65. def showing: Boolean

  66. def size: Dimension

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

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

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

  70. 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
  71. def toolkit: Toolkit

  72. def tooltip: String

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

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

  75. def verticalScrollBar: ScrollBar

  76. def verticalScrollBarPolicy: Value

  77. def verticalScrollBarPolicy_=(p: Value): Unit

  78. def viewportView: Option[Component]

  79. def viewportView_=(c: Option[Component]): Unit

  80. def viewportView_=(c: Component): Unit

  81. def visible: Boolean

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

  83. 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
  84. def xLayoutAlignment_=(x: Double): Unit

  85. def yLayoutAlignment: Double

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

Instance constructors

  1. new ScrollPane(c: Component)

  2. new ScrollPane()