JLayeredPane

Extends
JComponent
Methods
9
Fields
6

Getting one

JLayeredPane.new()

Methods

MethodReturnsDescription
getLayer(Component)numberThe layer of child comp.
setLayer(Component, number)()(JLayeredPane, Component, number) -> (): Moves child comp to layer, last in it.
setLayer(Component, number, number)()
getPosition(Component)numberChild comp's position within its layer (0 is the top-most).
setPosition(Component, number)()Moves child comp within its layer.
moveToFront(Component)()Moves child comp to the top of its layer.
moveToBack(Component)()Moves child comp to the bottom of its layer.
new()JLayeredPaneA new layered pane.
init(JLayeredPane)()A new layered pane.
isInstance(any)booleanWhether obj is a JLayeredPane object, a class(JLayeredPane) subclass's included.

Fields

FieldTypeDescription
DEFAULT_LAYERnumberJLayeredPane.DEFAULT_LAYER: 0.
PALETTE_LAYERnumberJLayeredPane.PALETTE_LAYER: 100.
DRAG_LAYERnumberJLayeredPane.DRAG_LAYER: 400.
superJComponentClassJComponent's class table: the base class.

Returned by

MethodReturnsDescription
JLayeredPaneClass.newJLayeredPaneA new layered pane.

Method details

setLayer

setLayer: ((JLayeredPane, Component, number) -> ()) & ((JLayeredPane, Component, number, number) -> ())

(JLayeredPane, Component, number) -> (): Moves child comp to layer, last in it.

(JLayeredPane, Component, number, number) -> (): Moves child comp to layer, at position within it.

isInstance

isInstance: (any) -> boolean

Whether obj is a JLayeredPane object, a class(JLayeredPane) subclass's included.