<AWT Dev> [8] Review request for CR 8006406: lightweight embedding in other Java UI toolkits

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Feb 19 03:03:26 PST 2013


Hi, Everybody.
> I think I didn't provide you with any version of "my" JLF.grabFocus() 
> yet, so here it is:
>
> public interface sun.awt.FocusGrabbable {
>    void grabFocus();
>    void ungrabFocus(boolean postEvent);
> }
I support Anthony here. This solution will simplify the fix and won't 
lead to adding of public methods in our peers.
>
> As you can see, these are very much the same grab/ungrabFocus() 
> methods that you have in your current fix. I suggest to implement this 
> interface in the JLightweightFrame class only, since this is where 
> they are really needed, and their implementation is entirely different 
> from others (including the LightweightFrame, which in the end does the 
> same thing as e.g. Frame, currently).
>

-- 
Best regards, Sergey.




More information about the awt-dev mailing list