RFR: 8295248: JEditorPane HTML form with multi selection broke drawing after reseting [v3]
Toshio Nakamura
tnakamura at openjdk.org
Mon Oct 24 02:06:23 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:
Fixed space
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/10685/files
- new: https://git.openjdk.org/jdk/pull/10685/files/e1ff53d2..afe379e7
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=10685&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=10685&range=01-02
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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