If you come across Java GUI development, people tended to use Java Swing in the past. But Oracle is keen to replace Swing by JavaFX in Java 8. JavaFX allows separating the GUI layouting, the stylesheet and the Java source code (controllers).
Updates are annoying, but have to be conducted anyway. Here’s how to quickly update your Java JDK on Mac OS X 10.11.