Java javax.swing JLayeredPane fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JLayeredPane fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JLayeredPane.

The text is from its open source code.

Subclass

javax.swing.JLayeredPane has subclasses.
Click this link to see all its subclasses.

Field

IntegerDEFAULT_LAYER
Convenience object defining the Default layer.
IntegerPALETTE_LAYER
Convenience object defining the Palette layer.
IntegerMODAL_LAYER
Convenience object defining the Modal layer.
IntegerPOPUP_LAYER
Convenience object defining the Popup layer.
IntegerDRAG_LAYER
Convenience object defining the Drag layer.
IntegerFRAME_CONTENT_LAYER
Convenience object defining the Frame Content layer.

Constructor

JLayeredPane()
Create a new JLayeredPane

Method

Componentadd(String name, Component comp)
Adds the specified component to this container.
Componentadd(Component comp)
Appends the specified component to the end of this container.
voidadd(Component comp, Object constraints, int index)
Adds the specified component to this container with the specified constraints at the specified index.
voidaddComponentListener(ComponentListener l)
Adds the specified component listener to receive component events from this component.
voidaddMouseMotionListener(MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component.
Component[]getComponentsInLayer(int layer)
Returns an array of the components in the specified layer.
intgetHeight()
Returns the current height of this component.
intgetLayer(JComponent c)
Gets the layer property for a JComponent, it does not cause any side effects like setLayer().
intgetLayer(Component c)
Returns the layer attribute for the specified Component.
intgetWidth()
Returns the current width of this component.
voidremove(int index)
Remove the indexed component from this pane.
voidrepaint()
Repaints this component.
voidsetBorder(Border border)
Sets the border of this component.
voidsetLayer(Component c, int layer)
Sets the layer attribute on the specified component, making it the bottommost component in that layer.
voidsetLayout(LayoutManager mgr)
Sets the layout manager for this container.
voidsetOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetVisible(boolean aFlag)
Makes the component visible or invisible.