Java Reference
In-Depth Information
Figure 8-4.
JLayeredPane positions
JLayeredPane Properties
Table 8-4 shows the two properties of
JLayeredPane
. The
optimizedDrawingEnabled
property
determines whether components within the
JLayeredPane
can overlap. By default, this setting
is
true
because in the standard usage with
JRootPane
the
JMenuBar
and content pane can't
overlap. However, the
JLayeredPane
automatically validates the property setting to reflect the
current state of the contents of the pane.
Table 8-4.
JLayeredPane Properties
Property Name
Data Type
Access
accessibleContext
AccessibleContext
Read-only
optimizedDrawingEnabled
boolean
Read-only
JFrame Class
The
JFrame
class is the Swing high-level container that uses a
JRootPane
and implements the
RootPaneContainer
interface. In addition, it uses the
WindowConstants
interface to help manage
closing operations.