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

1

u/thisismyaccountsmile May 05 '22

Also is that something I can run from my cmd line? I used to use eMacs and just run things from cmd line, can I do that with that?

3

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

Check the openjfx.io website for install instructions you can do it from command line but java modules makes it a slight headache if you can manage maven itd be easier.