Window.
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.
Note
On OSX, the property
apple.awt.draggableWindowBackground is set automatically when
a window's background color has an alpha component. That property must be
set to its final value before the heavyweight peer for the Window
is created. Once Component#addNotify has been called on the
component, causing creation of the heavyweight peer, changing this
property has no effect.
| 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. |
| protected static class | WindowUtils.RepaintTrigger
This can be installed over a |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| 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 List | Returns: A list with all windows and some detailed information.Specifies whether only currently visible windows will be
considered ( onlyVisibleWindows)true). That are windows which are not
minimized. The WS_VISIBLE flag will be checked (see:
User32.IsWindowVisible(HWND)).Requests a list of all currently available Desktop windows. |
| public static GraphicsConfiguration | getAlphaCompatibleGraphicsConfiguration()
Returns a |
| public static Dimension | |
| private static WindowUtils. | |
| public static String | Returns: The full file path of the PE file that is associated with the specified window handle.The concerning window handle for which the PE file path is
required. hwndDetects the full file path of the process associated with the specified window handle. |
| public static BufferedImage | Returns: Either the window's icon ornull if an error
occurred.The concerning window handle. hwndObtains the set icon for the window associated with the specified window handle. |
| public static Rectangle | Returns: The location and size of the window.The concerning window handle. hwndRequests the location and size of the window associated with the specified window handle. |
| public static String | Returns: Either the title or an empty string of no title was found or an error occurred.The concerning window handle. hwndTries to obtain the Window's title which belongs to the specified window handle. |
| public static boolean | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void |