I recently switched my Java Swing project from JDK 11 to JDK 17 and JDK 19, but encountered significant UI issues with text font, focus, and button size. I searched online for solutions but found no conclusive answers to my problem. I also looked for third-party libraries that could help solve these issues, but to no avail. I expected a smooth transition but instead encountered these UI issues. Can anyone provide guidance on how to tackle these problems without having to manually change each class of my big project? Additionally, any insights on the major differences between JDK 17 and 19 would be appreciated.