Learn to Program Mobile Devices and Computers with JavaFX

New programmers should learn JavaFX as their first language. JavaFX is Java’s User Interface (UI). That means you can learn to program with buttons, and windows instead of the old way, with a command line or black and white console. Learning to program using JavaFX, means you’ll learn fun parts of programming computers, not the boring parts.

If you have never programmed a computer before, you can learn to write apps that run on Windows, MacOS, Linux, iOS, Android, and any other Operating System (OS) that supports JavaFX. Even when programming for iOS and Android, you will do the programming on a laptop or desktop computer, then you move the app over to your mobile device, if that is your target.

The only prerequisite to learning JavaFX programming is to have Eclipse installed with the e(fx)clipse plugin. For that, I recommend working your way, “What is JavaFX?” You won’t understand most of the JavaFX and Java code at this point, but if you can get Eclipse and e(fx)clipse installed properly, and get the pure Java JavaFX example running, you’ll be ready to learn how to program using this list of tutorials. (You won’t need Scene Builder for this set of JavaFX tutorials and articles.)

Another good first article to look at is “Restriction on Required Library.” That gives you a feel for getting JavaFX working inside of Eclipse, even when you don’t install e(fx)clipse.

Again, these tutorials and articles are meant to teach new programmers how to program JavaFX applications. If you already understand a topic, skip to something that you can learn from. Don’t waste energy studying a Java or JavaFX topic you already understand.

If you want to know how to brag to your coder friends about learning to program computers, tell them, “I’m learning to program using JavaFX.” If they ask, “Isn’t that just Java.” You tell them, “It’s Java with the boring bits left out.”

Below is the new programmer’s JavaFX Table of Contents. The links will become active as they become available.


Welcome to Programming JavaFX

Javadoc’ing your JavaFX

Javadocs are special documents that explain Java (and JavaFX). They are extremely important as a reference when writing complex JavaFX apps. This article explains where to find the official JavaFX javadocs, and how to create simple javadocs for your own programs. For quick reference, the standard Java javadocs are at
https://docs.oracle.com/javase/8/docs/api/index.html?overview-summary.html
and the JavaFX specific javadocs are at
https://docs.oracle.com/javase/8/javafx/api/index.html?overview-summary.html

  • JavaFX Labels and Buttons
  • JavaFX Ints
  • Strings in JavaFX
  • Drawing on the JavaFX Canvas
  • Understanding the JavaFX Scene Graph

JavaFX Selection Structures

  • If structures in JavaFX
  • Introducing the JavaFX If-Else
  • Switch-Cases in JavaFX

Arrays

  • JavaFX examples using Arrays of Strings
  • JavaFX examples using Arrays of Ints

Repetition in JavaFX

  • While Loops in JavaFX
  • Traditional JavaFX For Loops
  • JavaFX Do-While Loops
  • JavaFX Break and Continue

Overview of Methods and Classes

  • How JavaFX benefits from Object Oriented Programming
  • Introduction to Methods with JavaFX examples
  • Introduction to Classes and Objects with JavaFX examples

JavaFX Events

  • Content To Be Determined

JavaFX Drops

  • Content To Be Determined

JavaFX Math

  • Simple Math in JavaFX
  • JavaFX Primitives
  • Randomness with JavaFX
  • JavaFX Math Class Methods

2D Drawing with JavaFX

  • Content To Be Determined

Complex JavaFX Scene Graphs

  • Content To Be Determined

JavaFX and Functional Programming

  • Content To Be Determined

Exception Handling

  • Content To Be Determined

Concurrent JavaFX

  • Content To Be Determined

Data Structures and Generics

  • Content To Be Determined

JavaFX with Web Content

  • Content To Be Determined

Animating JavaFX

  • Content To Be Determined

Deploying JavaFX to Mobile Devices

  • Gluon
  • Deploying to Android
  • Deploying to iOS

Deploying to Desktops and Laptops

  • Deploying JavaFX to Windows
  • Deploying JavaFX to MacOS