<AWT Dev> [12]RFR: JDK-8215921: There is no change when select different Foreground and Background by mouse.

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Jan 16 20:00:09 UTC 2019


On 16/01/2019 09:59, Krishna Addepalli wrote:
> Hi Sergey,
> I checked the code, by putting logs and can confirm that an event is not generated even if the same is reselected.
> I have updated the test case to reflect this fact, so here is the new webrev: http://cr.openjdk.java.net/~kaddepalli/8215921/webrev01/

But why it is not generated? How (!firstPress || wasDragged ) prevents it to be posted?
 From the code it looks like when "wasDragged==true" or "firstPress==false" we will post an event.


-- 
Best regards, Sergey.


More information about the awt-dev mailing list