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
1
u/case_steamer Dec 20 '25
Right now, I'm just trying to get anything at all to work. I've kind of figured out the basics of Swing; I monkeyed with JavaFX for two weeks, and nothing worked, so I gave up on that. My biggest help has been to chat with an AI; "This is the language I'm working in, I'm using package XYZ, this is what I'm trying to accomplish, help me understand how to accomplish it."
I thought about learning C# for a hot minute, but VSCode was just such an intimidating experience in itself, I switched to Java because the JetBrains IDE's are much more intuitive for me after learning Python/PyCharm. But at some point, I'll probably move to C#; there's more jobs there, and tbh there's a couple companies I've already bookmarked as ones I'd like to work for. So right now I'm trying to learn the fundamentals of OOP, and how to get the virtual machine to operate with the OS/hardware, and it seemed like a file explorer would be a good way to do that.
My biggest headache has been reading Java code in known applications, to pick up design patterns; there's so many files, and it's hard to tell just by looking at the file tree on github just exactly how an application is built. I wish I could learn program design independently from everything else; it's so intimidating with no hand-holding from an instructor, and the logic of Java doesn't come naturally to me. I don't understand how to "just know" when something needs to be static, non-static, or an independent object in and of itself.