Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 12524

Java FX vs Swing

by acrylic - 03 November, 2019 - 01:22 PM
This post is by a banned member (acrylic) - Unhide
acrylic  
Registered
16
Posts
1
Threads
5 Years of service
#1
Which one is better for a college project  in OOP?  I'm thinking about making a netflix-like app.
This post is by a banned member (Cerinthe) - Unhide
Cerinthe  
Infinity
34
Posts
3
Threads
5 Years of service
#2
(03 November, 2019 - 01:22 PM)acrylic Wrote: Show More
Which one is better for a college project  in OOP?  I'm thinking about making a netflix-like app.

I prefer JavaFX. I think it's a lot easier to work with and its end result produces a better GUI.
[Image: UH7yuWF.gif]

If I helped you at all, please consider leaving a LIKE or adding to my REP!
This post is by a banned member (shakyamuni) - Unhide
36
Posts
1
Threads
6 Years of service
#3
Clearly javafx for me.

I used to work with it for many years, and it s very simple and efficient.

With 'SceneBuilder' (GUI) you can construct your layout (.fxml) and use it to interfact with your java class
You can also use html page and interact with javascript too. 

Render customization is simple with css too 

You can create your own custom component and reuse them in many pages. (ex: list of customer, or a simple custom button )
This post is by a banned member (larrywildman) - Unhide
2
Posts
0
Threads
4 Years of service
#4
Experienced JavaFX dev here. You shouldn't use Swing anymore, JavaFX is superior. That being said, I can give you a few tips. SceneBuilder is nice for learning how JavaFX GUIs are build but I wouldn't use FXML in production. GUI generation based on FXML relies on reflection which is kind of bad for performance so I advise you to build your GUIs programmatically. There's a framework for Kotlin called TornadoFX which makes this incredibly easy, you should check it out.
This post is by a banned member (shakyamuni) - Unhide
36
Posts
1
Threads
6 Years of service
#5
(08 January, 2020 - 08:37 AM)larrywildman Wrote: Show More
Experienced JavaFX dev here. You shouldn't use Swing anymore, JavaFX is superior. That being said, I can give you a few tips. SceneBuilder is nice for learning how JavaFX GUIs are build but I wouldn't use FXML in production. GUI generation based on FXML relies on reflection which is kind of bad for performance so I advise you to build your GUIs programmatically. There's a framework for Kotlin called TornadoFX which makes this incredibly easy, you should check it out.

I dont even know what IS tornadofx
Thanks for the advise
This post is by a banned member (kemanakaupuki) - Unhide
5
Posts
0
Threads
4 Years of service
#6
saya gabut, pingin belajar ngehek
This post is by a banned member (hasi912) - Unhide

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 2 Guest(s)