RFR: 4797982: Setting negative size of JSplitPane divider leads to unexpected results. [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Jul 25 09:48:16 UTC 2022


> Setting JSplitPane divider size to negative value leads to unexpected results and is not desirable and seems to be not practical.
> I guess we should return IAE but it might break existing app so fixed to clamp it to 0 incase negative value is tried to be set for divider size.

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Fix to return L&F specific divider size

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/9566/files
  - new: https://git.openjdk.org/jdk/pull/9566/files/40ddca94..758dfb8a

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9566&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9566&range=00-01

  Stats: 28 lines in 3 files changed: 18 ins; 2 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/9566.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9566/head:pull/9566

PR: https://git.openjdk.org/jdk/pull/9566



More information about the client-libs-dev mailing list