r/learnjava • • 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?

4 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/Duente_Zaibatsu Dec 20 '25

A heads up. C / C# are very different, conceptually. Try to consider the language you specialize in for the long run. The longer a language has existed, the longer it tends to be used. Market share and bonification follow suit.

Use AI to explain or question stuff, never use its results. Try to understand the process, hallucinations are an issue, and its getting better, but over engineering, and multiple concepts will make anything unmanageable.

Intellij (JetBrains) is built using Swing, so it can prove its qualities and cost.

Finally, regarding files, structure and organization, realize that a big application is made of several working parts. Any workaround is a sign of project failure. This will get better with your age and experience, but will overrun you now.

Follow SOLID, KISS and DRY.

Start small, and iterate over.

Make a "Hello World", a BMI or similar application, a "Hello World with a background image", a Tik-tak-toe.

Each will solidify a concept:

Application life cycle. Console, and its usages. Inputs and outputs Bit, Map, bitmap and encode. Event Dispatch Thread, state handling, object necessity and hierarchy.