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 Build a JavaFX Application Graphical User Interfaces Adding Interactivity

We did not use enough ice cubes! Craig must be holding out on us again!

Before I came to Treehouse, I tried to learn by watching youtube vids. I saw one on swing. After watching it I was able to create my own swing GUI app using eclipse. I did almost no work! Almost everything was done by clicking and dragging to the design pane. It had a menu bar with 3 menu items. It had a tabbed text display area. Almost everything was done by clicking and dragging. Even the boiler plate for the window events was created by eclipse, I only had to fill in the code saying what should happen.

Eclipse/Swing can not be that much better than Intelij/JavaFX. If it was nobody would use them! Craig must be holding out on us again!

Lets get some more ice cubes!

2 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Ha, indeed!

JavaFX SceneBuilder

...but, but, but now you know what it's doing right? Okay, I'll order the dunk tank delivery again.

In all seriousness, this tool has gone through it's fair share of upgrades and confusion, and most developers that work in this space do the hand-coded approach, just like most web developers avoid DreamWeaver and craft their own.

I do appreciate you calling it out!

I have never seen anyone put a non functional comment, i.e. for humans only, comment in html! I have never seen anyone put in white space to make html more readable. (I have done both these things but it was to make a statement.) This tells me that html is one of those dark places in coding that no one wants to think about or be proud of. It looks like java fx is creating another one of those places and they are calling it fxml. I don't think the suits are going to allow an area of handcrafting and obscurity to exist in this genre of coding. They are going to insist that it everything be as point and clicky as possible. The suits view java programmers as overhead.

home.fxml confirms this. No comments, very little white space and the text runs off the screen in places.

And this is in tutorial code.