<AWT Dev> Review request #1: 6402325 (Swing toolbars vs native toolbars on Windows)
Artem.Ananiev at Sun.COM
Tue Oct 27 04:55:50 PDT 2009
here are some comments from my side:
1. Window.Type seems not to be a perfect name for the enum, it's too
generic. What about Window.WindowType?
2. Could you move the declaration of the enum to the top of Window.java,
so it can be easily located, please?
3. I don't see a strong reason to use the proposed approach, when we
store the window type at java.awt level and then use AWTAccessor to get
its value at the peers level. Why don't you want to add a method to
WindowPeer interface which is called when Window.setType() is invoked?
It would eliminate AWTAccessor and getType_NoClientCode().
Anthony Petrov wrote:
> Hello AWT team,
> The next version of the fix for
> 6402325 (Swing toolbars vs native toolbars on Windows)
> Please review at:
> This version introduces three window types:
> NORMAL - for regular windows.
> UTILITY - for toolboxes (either a WS_EX_TOOLWINDOW on Windows, or
> _NET_WM_WINDOW_TYPE_UTILITY on X11)
> POPUP - for menus and tooltips (WS_POPUP on Windows, or
> _NET_WM_WINDOW_TYPE_POPUP_MENU on X11)
> I ran related Swing and AWT automatic regression tests. They all passed
> on MS Windows and Gnome.
> best regards,
More information about the awt-dev