JLayeredPane Layer Constants : JLayeredPane « Swing « Java Tutorial






ConstantDescription
FRAME_CONTENT_LAYERLevel -30,000 for holding the menu bar and content pane; not normally used by developers
DEFAULT_LAYERLevel 0 for the normal component level
PALETTE_LAYERLevel 100 for holding floating toolbars
MODAL_LAYERLevel 200 for holding pop-up dialog boxes, on top of palettes, and below pop-ups
POPUP_LAYERLevel 300 for holding pop-up menus and tooltips
DRAG_LAYERLevel 400 for ensuring that dragged objects remain on top


14.52.JLayeredPane
14.52.1.JLayeredPane Layer Constants
14.52.2.Implement buttons at different layers
14.52.3.The JLayeredPane serves as the main component container of a JRootPane.
14.52.4.Moves an image of Duke around within a layered pane in response to mouse motion events.Moves an image of Duke around within a layered pane in response to mouse motion events.