JavaFX vs GWT

GWT and JavaFX are the only UI development toolkits Java developers need. Old time Java programmers argued about AWT vs Swing and discussed the benefits of Applets, JSF, and regular desktop apps. Now, stick to GWT or JavaFX. There isn’t really any need for the older UI technologies, from a Java programmer’s perspective.

If you’re not clear on differences or benefits of GWT and JavaFX, the two technologies compete, but not directly. GWT and JavaFX are both UI toolkits, but not for the same mediums. It’s like saying ships and trucks are both modes of transportation, but they really don’t compete directly, because one is for water transit and the other is for land transit. The same is true for GWT and JavaFX. They both compete in the UI world, but GWT is for web based apps and JavaFX is for traditional desktop apps that may interface with remote systems.

Continue reading “JavaFX vs GWT”

JavaFX Tutorial: Menu

JavaFX menu creation is essential to most complex applications. This JavaFx tutorial explains how to create menus using FXML. If need a quick introduction to JavaFX, check out my beginner’s tutorial, JavaFX 8 Hello World for Eclipse.

In case you’re new to JavaFX, or been away for a while, JavaFX 8 applications are arranged with a Stage, a Scene, Groups, and Leaf Nodes. The Stage is the application’s window. The Scene has the containers such as AnchorPanes and BorderPanes. Containers hold other containers, and leaf nodes. Leaf nodes are Controls such as Buttons, Labels, and text files.

JavaFX Stage, Scene, Group, and Leaf Node
JavaFX organizes its UI into Stages, Scenes, Groups, and Leaf Nodes.

Continue reading “JavaFX Tutorial: Menu”

JavaFX … Information Alerts: Hello World

For decades, the traditional first program created when learning a computer programming language has been the “Hello World!” program. I like the tradition, so we’ll do the same here.

All Hello World does, is print out “Hello World!” As it turns out, there are lots of ways to do this in Java. They vary as widely as printing to a web page, or using a Swing dialog to pop up the words.

The two most cutting edge ways to do new Java apps are with GWT and JavaFX. GWT is too difficult for first time programmers, so I’ll stick to using the friendlier JavaFX for this tutorial.

This is part of the Java Tutorial series I’m writing for my son.

Continue reading “JavaFX … Information Alerts: Hello World”