View RSS Feed

JavaFX Examples

JavaFX Examples

  1. Reacting to User Input in a JavaFX Application with Event Handlers

    by , 12-11-2016 at 06:33 PM (A JavaFX Blog)
    In a GUI application environment, events are generated every time a user interacts with the application using the input devices of the computer where the application is running; typical examples of events are a click with the mouse or a key press on the keyboard. In JavaFX, events are represented by the javafx.event.Event class; this is a subclass of java.util.EventObject, which is the base class representing a generic event in Java. The EventObject class offers a basic functionality related events, ...
  2. The building blocks of a JavaFX GUI: Stages, Scenes and Nodes

    by , 12-11-2016 at 05:02 PM (A JavaFX Blog)
    In JavaFX, the central metaphors used to represent a graphical user interface are the stage and the scene.

    A stage is the “location” where graphic elements will be displayed; it corresponds to a window in a desktop environment. The javafx.stage.Stage class represents a stage; the so-called “primary stage” (which corresponds to the main window of an application) is created automatically by the JavaFX framework as soon as an application is launched, and is supplied as argument to the ...

    Updated 12-11-2016 at 06:17 PM by JavaFX

    Categories
    JavaFX Stage , JavaFX Scene , JavaFX Examples , JavaFX Node