This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.animation.*; | |
| import javafx.beans.property.DoubleProperty; | |
| import javafx.scene.Group; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.shape.Circle; | |
| import javafx.scene.shape.Line; | |
| import javafx.scene.transform.Rotate; | |
| import javafx.util.Duration; | |
| import java.util.Calendar; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.beans.property.SimpleStringProperty; | |
| import javafx.beans.property.StringProperty; | |
| public class Person { | |
| private StringProperty firstName; | |
| private StringProperty lastName; | |
| public Person(String firstName, String lastName) { | |
| setFirstName(firstName); | |
| setLastName(lastName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application; | |
| import javafx.beans.value.ChangeListener; | |
| import javafx.beans.value.ObservableValue; | |
| import javafx.scene.Scene; | |
| import javafx.scene.web.WebEngine; | |
| import javafx.scene.web.WebView; | |
| import javafx.stage.Stage; | |
| import org.w3c.dom.Document; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package fruit; | |
| import java.io.IOException; | |
| import java.net.URL; | |
| import javafx.application.Application; | |
| import javafx.fxml.FXMLLoader; | |
| import javafx.scene.Scene; | |
| import javafx.scene.image.Image; | |
| import javafx.scene.layout.AnchorPane; | |
| import javafx.stage.Stage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application; | |
| import javafx.beans.property.BooleanProperty; | |
| import javafx.beans.property.SimpleBooleanProperty; | |
| import javafx.event.*; | |
| import javafx.scene.Node; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.effect.BoxBlur; | |
| import javafx.scene.input.MouseEvent; | |
| import javafx.scene.layout.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Application; | |
| import javafx.beans.property.SimpleStringProperty; | |
| import javafx.collections.FXCollections; | |
| import javafx.geometry.Pos; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.control.cell.PropertyValueFactory; | |
| import javafx.scene.layout.Pane; | |
| import javafx.scene.layout.StackPane; | |
| import javafx.scene.layout.VBox; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.*; | |
| import javafx.beans.value.*; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.input.*; | |
| import javafx.scene.layout.*; | |
| import javafx.scene.web.WebView; | |
| import javafx.stage.Stage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** Sample data for a table view */ | |
| public class Friend { | |
| final static public ObservableList data = FXCollections.observableArrayList( | |
| new Friend("George", "Movie Ticket", true), | |
| new Friend("Irene", "Pay Raise", false), | |
| new Friend("Ralph", "Return my Douglas Adams Books", false), | |
| new Friend("Otto", "Game of Golf", true), | |
| new Friend("Sally", "$12,045.98", false), | |
| new Friend("Antoine", "Latte", true) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.File; | |
| import java.io.IOException; | |
| import javafx.application.Application; | |
| import javafx.embed.swing.SwingFXUtils; | |
| import javafx.event.ActionEvent; | |
| import javafx.event.EventHandler; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.Button; | |
| import javafx.scene.control.Label; | |
| import javafx.scene.control.ToggleButton; |