r/javahelp • • May 05 '22

Unsolved Creating a GUI in java

I’ve been out of the programming game for a while, when I was in college i made GUIs with JavaFX. I was wanting to start to make a game just for a hobby, but then I found out the newest JDK no longer supports JavaFX. Was there a better one introduced or did they fall back onto AWT?

19 Upvotes

20 comments sorted by

View all comments

Show parent comments

1

u/thisismyaccountsmile May 05 '22

But is that the best option? Like did the decouple it because it was out of date and shouldn’t be used?

5

u/dionthorn this.isAPro=false; this.helping=true; May 05 '22

It is updated to jdk 18 by openjfx you can scope out their GitHub.

https://github.com/openjdk/jfx

Best GUI is based on your needs. Just need a basic GUI use Swing/AWT, need a little more control use JFX want 3D use LWJGL

4

u/hwaite May 05 '22

Just need a basic GUI use Swing/AWT

Why? For a greenfield project, there's no good reason not to use JavaFX. Especially if OP already has experience with it.

2

u/dionthorn this.isAPro=false; this.helping=true; May 05 '22 edited May 05 '22

No dependency/module management, especially when working from cmd line like OP it can be a headache until you figure it out, also swing awt is good enough for intellij I'm sure it's good enough for a basic GUI.

I really appreciate the JavaFX maven plugin from the openJFX folks though makes the dependency management alot easier.