On Wed, 1 Apr 2026 06:35:03 GMT, Jeremy Wood <[email protected]> wrote:
>> That solution above seems too complicated. Note that the patch updates the >> AccessibleJEditorPaneHTML class which is used only if current kit is >> HTMLEditorKit, so if the user sets the non-html-EditorKit or new Document we >> should drop the current accessibleContext and create a new one? > > When you say "drop the current accessibleContext" do you mean simply nullify > `JTextComponent.accessibleContext`? > > Or are you talking about detaching DocumentListeners? (Or something else?) I guess the accessibleContext is tied to the type of the document, so if the document is changed the accessibleContext should be updated/reset as well, correct? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30401#discussion_r3025612299
