I can recommend this course: https://www.udemy.com/course/java-the-complete-java-developer-course/ if you don’t mind an Australian accent (I don’t). Well structured, precise a lot of exercises, reflecting most changes in the latest JDK LTS.
For those not knowing: Never pay the official price on udemy. Check the page for a few days / weeks. They have promotions all the time, and you will get courses for 10-15 EUR. Which is a no brainer for a course like the above with over 100h of excellent content.
Interesting side effect with the above course, one of the rare ones using IntelliJ IDEA, so you will learn the IDE as a side effect.
Edit 1: only down side (if any). Tim “only” covers JavaFX not swing. But if you learn JavaFX Swing will be easy too. Plus there are many course on Swing too. It doesn’t really matter IMHO what you are learning first, it is more important to start.
Edit 2: With JavaFX and the free of charge Scene Builder - Gluon for Desktop you will encountered a very Xojo-ish experience from a layout perspective, with the only difference that everything is working and of course you can build an exe / app / deb or an installation package for all OSes including all necessary libraries and if you wish your openJRE, so that your end users will see nothing from Java, if they don’t dive deeper. Granted your IDEs will not look 100% “native”, but on WIndows and Linux still much better than the current Xojo binaries