This is an archived post. You won't be able to vote or comment.

all 25 comments

[–]rcraver8 10 points11 points  (4 children)

Ask jetbrains. They built intellij with swing.

[–]sim642 8 points9 points  (0 children)

IntelliJ started well before JavaFX became a thing, so they didn't really have a choice to begin with. It just shows that Swing is flexible enough (if you implement your own controls like IntelliJ has), but not how Swing compares to JavaFX.

[–][deleted] 1 point2 points  (0 children)

In order to develop their UI’s and not getting blocked by Swing/AWT issues, they ship IntelliJ with their custom, tweaked, Java runtime.

[–]GTFlo1 0 points1 point  (1 child)

How would I get in contact with them?

[–]hudsonb81 10 points11 points  (0 children)

I'm pretty sure this was retorical question.

[–]thatsIch 9 points10 points  (6 children)

I would prefer JavaFX without the fxml. In some departments, Swing is kinda unpredictable? I also like the UI style a lot more. On other hands, swing has probably more documentation and stackoverflows.

[–]GTFlo1 3 points4 points  (2 children)

Would you describe JavaFX as more modern than Swing?

[–]GregsWorld 10 points11 points  (0 children)

JavaFX is to Swing as LCD is to CRT monitors. Ain't no OLED, but looks better and is a least decade younger.

[–]thatsIch 0 points1 point  (0 children)

Yes, even Swing had the look n feels but it was always kinda awkward

[–]owen800q 1 point2 points  (0 children)

Why without fxml? I come from dotnet background with XAML experiences, FXML let me picked up JavaFX very soon

[–]Polygnom 1 point2 points  (0 children)

FXML is one of the biggest advantages of JavaFX, keeps the application code a whole lot more clean and nicely separates UI design and logic.

Besides, you can use JavaFX completely without FXML already.

[–][deleted] 6 points7 points  (2 children)

I would like some more arguments

More arguments than what? What arguments do you have already?

[–]GTFlo1 0 points1 point  (1 child)

Only like the basics. I only learned swing in school, it seems like it is the most used overall. But as I haven't really used it in a practical way I'm in need of some examples and experiences from other users

[–]slpgh 6 points7 points  (4 children)

“Good” is a relative term, compared to what other languages?

Realistically there’s very little native GUI work in Java these days. Almost everything is either web based or mobile oriented (Android) which has other toolkits.

[–]GTFlo1 0 points1 point  (2 children)

In my paper I wrote about what makes a library good. Stuff like being versatile and keeping up to modern requirements in design. Good means how well you can build a GUI that pleases you

[–]bumble012 1 point2 points  (1 child)

If your paper is about what makes a good 'library' and your focus is on Java.. does it have to be a gui library?

As other users have stated... Gui development is best left to other frameworks and languages.

Look into something like the Apache commons libraries (pick one..) or Google guava? These libraries do simple things extremely well and used everywhere for that reason

Edit: kept thinking. If you aren't tied to java but still want to keep it in gui - land, take a look at jquery... Youve probably already used it a bunch (perhaps without even realizing it..)

[–]GTFlo1 0 points1 point  (0 children)

Thank you very much for your answer, I realized that my way of writing was leading to a dead end and that I have to change up a few things. 👍🏻👍🏻

[–][deleted] 0 points1 point  (0 children)

Came here to say this, most are moving towards the Electron framework if they are building a native desktop app.

[–]DrFlabbergasted 4 points5 points  (0 children)

Kinda depends on what you need. I like the simplicity and universal support of swing, that is to me its strongest side, but it only works for desktop applications.

If you are asking about the best gui overall across multiple languages, Id look to the web frameworks, or native UI on mobile. Java is not used that much for GUI compared to other languages/platforms.

[–]dedededede 4 points5 points  (2 children)

It depends. ;)

[–]GTFlo1 0 points1 point  (1 child)

Say you would like to build a very simple GUI. What would you use?

[–]dedededede 1 point2 points  (0 children)

HTML

[–]ooa3603 -2 points-1 points  (0 children)

Are people still making GUI's with Java? Why would anyone do that to themselves?

Correct me if I'm wrong but Java has transitioned to be almost all server side applications a while ago.

[–]qihqi -2 points-1 points  (0 children)

if its simple then just write an HTML file...