r/learnjava • u/case_steamer • Dec 16 '25
General questions about Java ui design
I’m trying to learn Java, and I figured that a good project that I thought I could manage would be a file explorer a la Windows Explorer or Dolphin.
At the outset, everything I read said that JavaFX was the more “modern” GUI framework, so I tried to learn that. But over a couple weeks, I just found it cumbersome, and I barely can get it to do a mockup. So I did further reading, and it appears that Swing is more adaptable than the advertising makes it sound? Should I just use Swing? I found one thread here on Reddit where someone said that JavaFX is a real pain to work with in Linux especially, which is my OS, is that true?
Second question, when it comes to UI design, do you approach it from the strict standpoint that ”everything is an object”? Said another way, take a file explorer; you kinda have four main areas, a search bar to input a file path, a pane for displaying the current directory, a pane for displaying the file tree, and a pane to display the properties of a selected file. Are all those panes objects in their own right, or are they merely properties of the main UI class? What is the thought process behind UI design when it comes to Java?
View all comments
Show parent comment
2
u/Duente_Zaibatsu Dec 20 '25
Consider that you may need to do all purposes. Local stand alone applications tend to be uncommon, pay better, and are harder to understand and manage. Focus on Layout, and try to understand the concept of Event Dispatch Thread.
A local application may also have "web" parts, and TCP/UDP protocols may assist you, so, a shallow knowledge on many subjects is very helpful.
Try to state your goal, the "budget" that you have, such as time, cost, resources needed, observability of the system and so on, and you can rise from the masses quickly