Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

What are some of the alternatives to Java Swings?

What are some of the alternative options to develop a functional application but without Java Swings? If possible please let me know something that does not involve Java or C#

5 Answers

Ryan Ruscett
Ryan Ruscett
23,309 Points

Hey,

Unfortunately you wont get away making a Java GUI without Java. There are several Java GUI frameworks that are not swing. There is AWT, a lot like swing. SWT, SwingX, JGoodies and as Gene mentioned. JavaFx.

If you try an IDE like NetBeans, you can have a GUI builder. Where you can drag and drop all sorts of styled buttons and stuff onto the screen and it generates the code behind the scenes.

Let me know if that helps answer your question.

Thanks!

One good alternative is JavaFX. You can find information about it with a simple search engine query or wait for the teamtreehouse course coming this August: http://teamtreehouse.com/library/build-a-javafx-application/upcoming.

JavaFX is (and has been slowly) replacing swing as Oracle's go to GUI tool.

Here is a link to Oracle's get started in javafx tutorial: http://docs.oracle.com/javase/8/javafx/get-started-tutorial/get_start_apps.htm#JFXST804

Good luck!

My bad. I did not realize that you wanted to stay away from Java and C#.

That being said, it depends on the purpose of the GUI. If you want to build web applications, I could recommend Ruby On Rails or javascript.

Otherwise, there are many to choose from (including more web app options):

For the C++ language, there are many: https://en.wikipedia.org/wiki/List_of_platform-independent_GUI_libraries. C++ is similar to Java/C#, but I figured I would mention them because I don't know your reasons for staying away from Java/C#.

For the python programming language there are several: https://wiki.python.org/moin/GuiProgramming

And, of course, we cannot forget the Visual Basic programming language, a language known for its excellent GUI tools.

I hope that helps.

Thanks a lot Gene Osborne and Ryan Ruscett! Basically my only problem with using Java to develop GUI is that there is just too much of code, too much you have to do to get things done. I was wondering if there was an easier way to develop GUI based applications.

Ryan Ruscett
Ryan Ruscett
23,309 Points

I hear that on the Java GUI. If you want to stick in the Java realm but make sweet GUI's with 60 percent less code. Use Jython. I program ALL my GUI's in Jython. I love it!!! It's python but you can use Java Libraries. There was a new build in 2015 so it might be exactly what you are looking for. It's super fast and wayyyyyy easier.

Jython

Thanks alot Ryan Ruscett i will get right on with Jython.