Can I use CSS or other web technologies in a Java desktop application by any means?
Note: I know as I used they are web based resources, but I want to know the ways it can be used in a Java desktop application.
You can use CSS in your Java desktop application, but you can't use JavaScript. Here is the links, you can learn how to use CSS in a Swing application'.
Personally, I recommended to use the 'Look And Feel' features in your application.
As stated in another answer, you can use CSS. You can also use JavaScript using Java's ScriptEngine class.
Here is the documentation: https://docs.oracle.com/javase/7/docs/technotes/guides/scripting/programmer_guide/
JEditorPanesupports simple CSS (& a sub-set of HTML 3.2), but not JavaScript.