> traverse the component tree
Hm, interesting. But I'm not sure if everything is smoothly as, e.g., it is also required to close the dialogs one-by-one (for now the user does that), and I'm not sure if it is easy to implement.

On 3/11/2016 5:55 PM, Semyon Sadetsky wrote:


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.

--Semyon
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





Reply via email to