Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,307 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,307 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.