Window.
Note
setWindowTransparent on X11 doesn't composite
entirely correctly; depending on what's drawn in the window it mey be
more or less noticable.
Note
Neither shaped windows nor transparency currently works with Java 1.4 under X11. This is at least partly due to 1.4 using multiple X11 windows for a single given Java window. It *might* be possible to remedy by applying the window region/transparency to all descendants, but I haven't tried it. In addition, windows must be both displayable and visible before the corresponding native Drawable may be obtained; in later Java versions, the window need only be displayable.
Note
If you use setWindowMask(Window, Shape) and override Window#paint(Graphics) on OS X, you'll need to explicitly set the clip
mask on the Graphics object with the window mask; only the
content pane of the window and below have the window mask automatically
applied.
| Modifier and Type | Class and Description |
|---|---|
| private static class | WindowUtils.HeavyweightForcer
This class forces a heavyweight popup on the parent
|
| private static class | WindowUtils.Holder
Canonical lazy loading of a singleton. |
| private static class | |
| public abstract static class | WindowUtils.NativeWindowUtils
Window utilities with differing native implementations. |
| private abstract static class | WindowUtils.RepaintTrigger
This can be installed over a |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static boolean | |
| public static final Shape | MASK_NONE
Use this to clear a window mask. |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static GraphicsConfiguration | getAlphaCompatibleGraphicsConfiguration()
Returns a |
| private static WindowUtils. | |
| public static boolean | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | whenDisplayable(Window w, final Runnable action)
Execute the given action when the given window becomes displayable. |