30 import java.awt.Color;
31 import java.awt.Graphics;
32 import java.awt.Rectangle;
33 import java.beans.JavaBean;
34 import java.beans.BeanProperty;
35
36 import sun.awt.SunToolkit;
37
38 import javax.accessibility.*;
39
40 /**
41 * <code>JLayeredPane</code> adds depth to a JFC/Swing container,
42 * allowing components to overlap each other when needed.
43 * An <code>Integer</code> object specifies each component's depth in the
44 * container, where higher-numbered components sit "on top" of other
45 * components.
46 * For task-oriented documentation and examples of using layered panes see
47 * <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/layeredpane.html">How to Use a Layered Pane</a>,
48 * a section in <em>The Java Tutorial</em>.
49 *
50 * <TABLE STYLE="FLOAT:RIGHT" BORDER="0" SUMMARY="layout">
51 * <TR>
52 * <TD style="text-align:center">
53 * <P STYLE="TEXT-ALIGN:CENTER"><IMG SRC="doc-files/JLayeredPane-1.gif"
54 * alt="The following text describes this image."
55 * WIDTH="269" HEIGHT="264" STYLE="FLOAT:BOTTOM; BORDER=0">
56 * </TD>
57 * </TR>
58 * </TABLE>
59 * For convenience, <code>JLayeredPane</code> divides the depth-range
60 * into several different layers. Putting a component into one of those
61 * layers makes it easy to ensure that components overlap properly,
62 * without having to worry about specifying numbers for specific depths:
63 * <DL>
64 * <DT>DEFAULT_LAYER</DT>
65 * <DD>The standard layer, where most components go. This the bottommost
66 * layer.
67 * <DT>PALETTE_LAYER</DT>
68 * <DD>The palette layer sits over the default layer. Useful for floating
69 * toolbars and palettes, so they can be positioned above other components.
70 * <DT>MODAL_LAYER</DT>
|
30 import java.awt.Color;
31 import java.awt.Graphics;
32 import java.awt.Rectangle;
33 import java.beans.JavaBean;
34 import java.beans.BeanProperty;
35
36 import sun.awt.SunToolkit;
37
38 import javax.accessibility.*;
39
40 /**
41 * <code>JLayeredPane</code> adds depth to a JFC/Swing container,
42 * allowing components to overlap each other when needed.
43 * An <code>Integer</code> object specifies each component's depth in the
44 * container, where higher-numbered components sit "on top" of other
45 * components.
46 * For task-oriented documentation and examples of using layered panes see
47 * <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/layeredpane.html">How to Use a Layered Pane</a>,
48 * a section in <em>The Java Tutorial</em>.
49 *
50 * <table class="borderless" style="float:right">
51 * <caption style="display:none">Example</caption>
52 * <TR>
53 * <TD style="text-align:center">
54 * <P STYLE="TEXT-ALIGN:CENTER"><IMG SRC="doc-files/JLayeredPane-1.gif"
55 * alt="The following text describes this image."
56 * WIDTH="269" HEIGHT="264" STYLE="FLOAT:BOTTOM; BORDER=0">
57 * </TD>
58 * </TR>
59 * </TABLE>
60 * For convenience, <code>JLayeredPane</code> divides the depth-range
61 * into several different layers. Putting a component into one of those
62 * layers makes it easy to ensure that components overlap properly,
63 * without having to worry about specifying numbers for specific depths:
64 * <DL>
65 * <DT>DEFAULT_LAYER</DT>
66 * <DD>The standard layer, where most components go. This the bottommost
67 * layer.
68 * <DT>PALETTE_LAYER</DT>
69 * <DD>The palette layer sits over the default layer. Useful for floating
70 * toolbars and palettes, so they can be positioned above other components.
71 * <DT>MODAL_LAYER</DT>
|