RFR: 6875229: Wrong placement of icons in JTabbedPane in Nimbus

Prasanta Sadhukhan psadhukhan at openjdk.org
Wed Jun 21 15:44:15 UTC 2023


Icon is placed after text in JTabbedPane for NimbusL&F since the text is drawn at LEADING position instead of TRAILING as is done for [other L&F](https://github.com/openjdk/jdk/blob/59c6c0e1b7148a7139f5e6a4ba2b19623c20c77d/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java#L1155-L1160)

Before fix
![image](https://github.com/openjdk/jdk/assets/43534309/10d3f919-46e0-47e9-9d27-b33e49b2d62c)

After fix
![image](https://github.com/openjdk/jdk/assets/43534309/0c4906ec-df2a-4ce6-8399-fd1cd9e34450)

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

Commit messages:
 - 6875229:  Wrong placement of icons in JTabbedPane in Nimbus
 - Merge branch 'master' of github.com:prsadhuk/jdk
 - Merge remote-tracking branch 'upstream/master'
 - Merge remote-tracking branch 'upstream/master'
 - Revert "Fix"
 - Fix

Changes: https://git.openjdk.org/jdk/pull/14596/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14596&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-6875229
  Stats: 128 lines in 2 files changed: 126 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/14596.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14596/head:pull/14596

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



More information about the client-libs-dev mailing list