> [JDK-6328248](https://bugs.openjdk.org/browse/JDK-6328248) fixed PrintJob > (1.1 Graphics API) based JProgressBar printing for most L&F however it seems > to cause ClassCastException in AquaProgressBarUI.paint as non-Graphics2D path > was not handled > `Caused by: java.lang.ClassCastException: class sun.print.ProxyPrintGraphics > cannot be cast to class java.awt.Graphics2D (sun.print.ProxyPrintGraphics and > java.awt.Graphics2D are in module java.desktop of loader 'bootstrap') ` > > FIx is made to render Aqua progress bar into BufferedImage, then drawImage > for non-Graphics2D case where 1.1 PrintJob is used > > > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Prasanta Sadhukhan has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 11 additional commits since the last revision: - Merge branch 'master' of https://git.openjdk.java.net/jdk into JDK-8386573 - Windows Progrssbar fix - Fix to have non-blocky string - Fix vertical progressbar rendering - Vertical progressbar print - Vertical progressbar print - RTL fix for Basic and Windows L&F - Fix and test update - Move paintString block to paint - Move paintString block to paint - ... and 1 more: https://git.openjdk.org/jdk/compare/b08a59e2...48ff3e06 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/31749/files - new: https://git.openjdk.org/jdk/pull/31749/files/090cdc9b..48ff3e06 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=31749&range=09 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31749&range=08-09 Stats: 545593 lines in 6682 files changed: 437760 ins; 64670 del; 43163 mod Patch: https://git.openjdk.org/jdk/pull/31749.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31749/head:pull/31749 PR: https://git.openjdk.org/jdk/pull/31749
