<AWT Dev>  RFR for 8151714: [TEST] add a manual test test for JOptionPane dialog multires. icons
semyon.sadetsky at oracle.com
Fri Mar 11 14:55:51 UTC 2016
On 3/11/2016 5:45 PM, Alexander Stepanov wrote:
> *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?
Yes, we can: Component# getLocationOnScreen() and traverse the component
tree to find the Label component with the icon.
>> 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
>> 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.
>>> On 3/11/2016 4:53 PM, Alexander Stepanov wrote:
>>>> Could you please review the fix
>>>> - just a single test added.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev