EvilZone
Programming and Scripting => Java => : PsychoRebellious June 05, 2014, 06:28:14 PM
-
I've been learning JAVA for a while from this book teach yourself java in 24 days. I am on the chapter where they walkthrough the GUI using Java swing library, I've done a little googling and seems like not everybody is in favor of swing. My question to the Java programmers in this community: Do you use swing? is it a wise choice?
I am looking forward to making a living with android development or desktop application development. I've chosen Java as a medium so can you really get java based projects online with knowledge of Swing?
-
I use swing. I think that it's really good, but I have never looked into anything else.
-
It's best to know a few GUI libs, but Swing is pretty efficient. I use it all the time.
For android it's a whole new thing, there is no Swing there.
-
I've been learning JAVA for a while from this book teach yourself java in 24 days. I am on the chapter where they walkthrough the GUI using Java swing library, I've done a little googling and seems like not everybody is in favor of swing. My question to the Java programmers in this community: Do you use swing? is it a wise choice?
I am looking forward to making a living with android development or desktop application development. I've chosen Java as a medium so can you really get java based projects online with knowledge of Swing?
Do you use swing?
Yes.
is it a wise choice?
Depends. Certainly not for Android programming, but it is alright for desktop applications.
However, JavaFX is newer and might replace Swing in the future. Since you are just starting, I would probably go with JavaFX, if I where you.
Look into the Oracle tutorials as they are the most reliable source:
Swing: http://docs.oracle.com/javase/tutorial/uiswing/index.html
JavaFX: http://docs.oracle.com/javase/8/javase-clienttechnologies.htm
There is much bad stuff out there, especially when it comes to teaching Swing. Don't spoil yourself.
-
I guess I've got my answer. Since nobody else here is having any problems with Swing here I should give it a go too.
However, JavaFX is newer and might replace Swing in the future. Since you are just starting, I would probably go with JavaFX, if I where you.
As kulv just said, there's no harm in learning more than one library. I'll look into JavaFX once I have a good command on Swing. ;)
-
Oh Swing... it's a pretty good choice, but boy can it get messy. Very messy. However it's probably one of the best choices for regular Java. The ability to use HTML and CSS inside the elements can help a lot too, depending on what you are doing. As Deque mentioned, JavaFX is another route but I'm not super familiar with it, so I won't pretend I am.
If you want to get something really nice looking and have lots of time, I suggest looking into some of the OpenGL GUI libraries. One of the most common is Nifty. Get an OpenGL binding (LWJGL or JOGL), give yourself plenty of time, and you can get a verrrry nice looking GUI going. The cool thing about this is that you can deploy it to Android (or IOS if you look into using LibGDX's RoboVM) very easily.
-
OpenGL GUIs will be very hard (To learn) and take a lot of time to do, but if done correctly they will be very magnificient and have a lot of potential.
-
OpenGL GUIs will be very hard (To learn) and take a lot of time to do, but if done correctly they will be very magnificient and have a lot of potential.
Never said it was easy :)
It certainly does take a lot of time, and shouldn't be taken up lightly.
-
in Short Swing is Awesome i never find it messy
i also try JavaFx which is cool somehow for animation and high Graphics
but the good part is that we can use both Swing and JavaFx together ......