<AWT Dev> RFR: 8232744 j.awt.Window::setShape(Shape) paints visible artifacts outside of the given shape

Philip Race philip.race at oracle.com
Mon Apr 13 15:38:48 UTC 2020



On 4/8/20, 7:53 PM, Sergey Bylokhov wrote:
> On 4/8/20 5:36 pm, Philip Race wrote:
>>> I have never seen "AWT-defined window" term, I assume we never used 
>>> it before is it
>>> clear enough? Usually, we use "Top level window" which will cover 
>>> AWT and Swing.
>>
>> But the point here is the intent for this shape to visually defines 
>> the window,
>> but the desktop did something else.
>> So the intent is to distinguish what the Java application requested 
>> vs what happened.
>> I think it is clear enough.
>>
>> Also Swing does not create Windows. Does it have native code to 
>> create its own ?
>> No, it just asks AWT to. So don't worry about that.
>
> The native code is not related to this,


That is not what I am getting at.

> we just do not specify what is
> "AWT-defined window" means and why for example the 
> JDialog/JFileChooser/etc are
> AWT-defined.

Well, I think we need it. It means what the Java application requested. 
Simple enough.

-phil.
>
>


More information about the awt-dev mailing list