AWT Enhancements in Java SE 7

The following enhancements are introduced:

Area: API: AWT
Standard/Platform: Java SE 7
Synopsis: The java.awt.Cursor class contained a "protected static field" called "predefined." This field has been removed.

Area: API: AWT
Standard/Platform: Java SE 7
Synopsis: Color alpha values are now preserved by java.awt.Color.darker() and java.awt.Color.lighter() methods.
RFE: 6783910

Area: API: AWT
Standard/Platform: JDK 7
Synopsis: Limited mixing of heavyweight (e.g. AWT) and lightweight (e.g. Swing) components is now officially supported. Details are available in the API specification (see the java.awt.Component class specification and its "See Also" link), and the Mixing Heavyweight and Lightweight Components article. If an application uses custom code to address the mixing issue and experiences problems with the built-in support for mixing, the feature can be turned off by specifying the -Dsun.awt.disableMixing=true system property.
RFE: 4811096

Area: API: AWT
Standard/Platform: JDK 7
Synopsis: The mechanism used to detect whether the window manager supports a system tray (and therefore the TrayIcon API) has been changed. Instead of looking at the current window manager, the System Tray Protocol Specification is used.
RFE: 6438179

Area: API: AWT
Standard/Platform: JDK 7
Synopsis: In the JDK 7 release there are two AWT toolkits that are supported. WToolkit on Windows and XToolkit on Linux/Solaris. The MToolkit implementation on Linux/Solaris is no longer supported.

Area: API: AWT
Standard/Platform: JDK 7
Synopsis: With this fix, all java.awt.Window objects (not frames or dialogs) are regular top-level windows on X11. In the JDK 6 release, they were OverrideRedirect windows.
RFE: 6380835

Area: API: AWT
Standard/Platform: JDK 7
Synopsis: Windows that enable the PERPIXEL_TRANSLUCENT kind of transparency by means of setting a non-opaque background color may not display heavyweight (e.g. AWT) child components correctly. AWT supports lightweight (e.g. Swing) components in per-pixel translucent windows only. More information on the difference between the two kinds of components can be found in the Component class specification and in the Mixing Heavyweight and Lightweight Components article.
RFE: 6802853


Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.