What is JavaFX … the Website

My JavaFX tutorials have been so popular that I’ve decided to spin up a JavaFX specific site. There really isn’t enough information out there on how to use JavaFX, so I’ve introduced the new domain, https://whatisjavafx.com to answer the burning question, “What is JavaFX?”

JavaFX is a great technology, but it isn’t as easily accessible as Swing and AWT were. One of the challenges with JavaFX is that lots of set up goes into even the most simple “Hello World” style JavaFX application. Despite wonderful tools like Scene Builder and API’s, it’s tough for coders new to JavaFX to get a foothold on the ins and outs of it.

I will mirror most of the JavaFX information on this site over to https://whatisjavafx.com, except I’ll make the categories more granular. I’m planning currently to break the categories down into FXML, JavaFX 3D, JavaFX Applications, JavaFX Dialog, JavaFX Pane, JavaFX Scene, JavaFX Tutorial, and not-to-be-forgotten Scene Builder. (I absolutely LOVE Scene Builder!)

Continue reading “What is JavaFX … the Website”

JavaFX TableView Explanation

JavaFX TableViews are for editing and displaying data. Think of the TableView as a very raw spreadsheet for JavaFX. If you are familiar with the TableView from Swing or another windowing toolkit, then you’re well on your way to understanding the JavaFX TableView.

If you are looking for a tutorial with JavaFX TableView code, check out my Simple JavaFX TableView Example. This post has more to do with explaining how basic TableViews fit together. Think of it as a companion to the Simple JavaFX TableView Example. I wrote this post, because just looking at a JavaFX TableView example is not nearly enough for the learning programmer to understand everything going on. JavaFX TableViews have a steep learning curve to put it mildly. Don’t feel bad if you’re having a hard time wrapping your mind around the TableView in JavaFX. It takes a little getting use to.

In JavaFX, all tables are enclosed in TableViews objects. If you’ve done a little JavaFX already, you could think of JavaFX TableViews as scenes for holding TableColumns. JavaFX TableColumns in turn are associated with specialized data objects called ObservableLists.

Continue reading “JavaFX TableView Explanation”

Simple JavaFX TableView Example

JavaFX TableViews are perfect for making spreadsheets or just displaying data. In JavaFX, TableViews are a little trickier than normal UI elements, because you are dealing with data, and data can come and go as you use your application. This tutorial goes over setting up your first JavaFX TableView and populating it with custom data.

javafx_tableview_example
Typical JavaFX TableView in use.

Continue reading “Simple JavaFX TableView Example”