Re: [orca-list] Problem with swing application not being refreshed to orca



Hello,
Thank you for the information. I tried out the utilities but AccessibilityMonitor kept crashing on me and JavaMonitor was pretty sluggish with orca (I wasn't sure whether it was showing any events or not as it was taking so long at times).

I have done some other things:
* Tried a debug with orca, it shows no events as the text of the label is being updated.
* I tried in scala to get the actual peer (the java object) for the label and call the actual setText method from my own code, this still showed the bug.

A couple of thoughts/questions:
* Is changing the text on a label (use of setText) meant to give any events? I would have imagined so but might I have assumed wrong.
* I am now fairly sure that it is not orca's flat review causing the bug. Well at least what I mean is that flat review doesn't cause it but may show it. Could there be some caching going on which relies on an event to tell it the cache is out of date?

If both of those thoughts can be ruled out, I will possibly look into creating a standard java version and see whether the problem is still seen, so proving whether it is in scala or somewhere else. Might another valid test of it being in scala or something else be to try the scala app on another platform (eg. windows)?

Michael Whapples
On 13/03/11 19:07, Peter Korn wrote:
Hi Michael,

I've not played with scala.  It would be interesting to explore your app with some of the Java Accessibility Utilities - particularly AccessibilityMonitor that is part of the Java Accessibility Utilities ('jaccess-examples.jar').  See http://download.oracle.com/docs/cd/E17802_01/j2se/javase/technologies/accessibility/docs/jaccess-1.3/doc/AccessibilityMonitor.html for details.

My hunch is that something about how scala works is preventing accessibility events from propagating within the Java runtime.  If that is the case, then there is little either the older Java Access Bridge or the new Java ATK wrapper can do.  The problem would have to be fixed within scala and how it invokes Swing and AWT.


Good luck with this,

Peter

On 3/13/2011 4:14 AM, Michael Whapples wrote:
Hello,
I have been looking at scala for programming but noticed that when creating a swing application using it orca does not always seem to see when a label (possibly other parts of a GUI) are updated. I have attached a demo application which shows the problem (compile with scalac and run scala with the class SwingBug).

Here is how to reproduce the bug:
* Run the scala application.
* Press the button labelled "Click me".
* use flat review to see the label below the button.
* Press the "Click me" button again and again use flat review to look at the label.

Until flat review is used for the first time orca will see the updating of the label. After flat review has been used once the update of the label will not be seen by orca. I have tried alt+tabbing to another application and back but this doesn't help. The only thing which seems to let orca see the updates after using flat review is to restart orca.

I have tried this using the old java access bridge (1.26.x) and the new java ATK wrapper but both show this issue.

As the label seems to actually being updated (as seen by the output to the text console and also after an orca restart) and it shows with both java access bridge and java ATK wrapper I am being lead to it being an orca bug. Can anyone shed any more light on whether my thinking of where the bug is, whether it is correct or not?

I nearly forgot to say, I am using the sun JDK rather than openJDK. I know sometimes this can make a slight difference (eg. there is a bug where eclipse doesn't shutdown properly when assistive technology is running in gnome but the IBM JDK doesn't show this bug).

Any help would be welcome in sorting this out.

Michael Whapples
  
_______________________________________________
orca-list mailing list
orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Netiquette Guidelines are at http://live.gnome.org/Orca/FrequentlyAskedQuestions/NetiquetteGuidelines
Log bugs and feature requests at http://bugzilla.gnome.org
Find out how to help at http://live.gnome.org/Orca/HowCanIHelp

--
Oracle
Peter Korn | Accessibility Principal
Phone: +1 650 5069522
500 Oracle Parkway | Redwood City, CA 94065
Green Oracle Oracle is committed to developing practices and products that help protect the environment



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]