RFR: 8295248: JEditorPane HTML form with multi selection broke drawing after reseting [v2]
Toshio Nakamura
tnakamura at openjdk.org
Mon Oct 17 01:38:00 UTC 2022
> When JEditorPane shown HTML form with multi-selection, the reset operation broke its drawing.
>
> There are two issues. The current method `OptionListModel.removeIndexInterval()` disabled selections, but it didn't fire the change. Then, no re-drawing. Another issue is the method works as remove and shift. Then, selection values were corrupted.
> I think the clear method `OptionListModel.clearSelection()` is suitable here.
>
> Test: jdk_desktop on macOS (x64, Monterey), Linux (x64, RHEL8), and Windows (x64, 2012R2).
> No regression found
Toshio Nakamura has updated the pull request incrementally with one additional commit since the last revision:
Update testcase
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/10685/files
- new: https://git.openjdk.org/jdk/pull/10685/files/529bed84..e1ff53d2
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=10685&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=10685&range=00-01
Stats: 26 lines in 1 file changed: 3 ins; 3 del; 20 mod
Patch: https://git.openjdk.org/jdk/pull/10685.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/10685/head:pull/10685
PR: https://git.openjdk.org/jdk/pull/10685
More information about the client-libs-dev
mailing list