<AWT Dev> [9] RFR for 8151714: [TEST] add a manual test test for JOptionPane dialog multires. icons

Alexander Stepanov alexander.v.stepanov at oracle.com
Fri Mar 11 14:45:05 UTC 2016


*inside of the internal pane
parent pane

On 3/11/2016 5:42 PM, Alexander Stepanov wrote:
> Hello Semyon,
>
> I'm not sure if we can control the location of the dialogs shown (and 
> of course we don't know the location of the icons on them), can we?
> It is clear that the internal dialogs are located somewhere inside of 
> the internal pane, but this is not true for the others.
>
> So (probably I'm wrong) there is seemingly no an elegant way to 
> predict the location of the icons, and simple iteration over the 
> screen coordinates (checking for the pixel color) looks not very 
> reliable.
>
> Thanks,
> Alexander
>
> On 3/11/2016 5:24 PM, Semyon Sadetsky wrote:
>> Hi Alexandr,
>>
>> Can the test be automated? It is possible to read color from the 
>> screen with AWT Robot.
>>
>> --Semyon
>>
>> On 3/11/2016 4:53 PM, Alexander Stepanov wrote:
>>> Hello,
>>>
>>> Could you please review the fix
>>> http://cr.openjdk.java.net/~avstepan/8151714/webrev.00/
>>> for
>>> https://bugs.openjdk.java.net/browse/JDK-8151714
>>> - just a single test added.
>>>
>>> Thanks,
>>> Alexander
>>
>



More information about the awt-dev mailing list