java/swing nvda reinitializes jtextpanel when ever insertString in the styledDocument is called #11786
Labels
Abandoned
requested reports or updates are missing since more than 1 year, author or users are not available.
component/java-access-bridge
Hey,
i tried to write an add-on with livetext behavior for a java-application. I saw a strange behavior in the nvda-log, so I write a simple example application to reproduce that. This is reproduceable in the small application. Of curse, the misstake could be on my add-on, but I will give you the code of the add-on, if this is a bug, this should be fixed.
Steps to reproduce:
https://github.com/christopherpross/nvda-issue-demo
(I have tried multible java versions)
https://gist.github.com/christopherpross/342d6d975621944c8d2d0f4102d791ef
Actual behavior:
It looks like nvda reinitalizes the jtextpanel on every call on jtextpanel.getstyleddocument.insertstring()
For me the log looks like this, please ignore the braille-debug messages.
Expected behavior:
the object should be not reinitialized and the monitoring should work. Every textchange event, here, there should a log message, that there was the text changed.
System configuration
NVDA installed/portable/running from source:
installed
NVDA version:
2020.3
Windows version:
latest windows 10 public version with all updates installed
Name and version of other software in use when reproducing the issue:
I tried multible versions of java with accessbridge, including:
Other information about your system:
none
Other questions
Does the issue still occur after restarting your computer?
yes
Have you tried any other versions of NVDA? If so, please report their behaviors.
yes, tried the following versions:
If addons are disabled, is your problem still occuring?
I can not say that, because I can only disable all other add-ons, tried this out and yeah, problem is not solved.
Did you try to run the COM registry fixing tool in NVDA menu / tools?
yes, no improvements
The text was updated successfully, but these errors were encountered: