This file contains 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.SimpleBooleanProperty; | |
import javafx.geometry.Pos; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.HBox; | |
public class ToggleSwitch extends HBox { | |
private final Label label = new Label(); |
This file contains 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
.root { | |
-fx-accent: #1e74c6; | |
-fx-focus-color: -fx-accent; | |
-fx-base: #373e43; | |
-fx-control-inner-background: derive(-fx-base, 35%); | |
-fx-control-inner-background-alt: -fx-control-inner-background ; | |
} | |
.label{ |
This file contains 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
.root { | |
-fx-accent: #1e74c6; | |
-fx-focus-color: -fx-accent; | |
-fx-base: #373e43; | |
-fx-control-inner-background: derive(-fx-base, 35%); | |
-fx-control-inner-background-alt: -fx-control-inner-background ; | |
} | |
.label{ |
This file contains 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 sample; | |
import javafx.animation.KeyFrame; | |
import javafx.animation.Timeline; | |
import javafx.fxml.FXML; | |
import javafx.fxml.Initializable; | |
import javafx.scene.control.TextField; | |
import javafx.scene.text.Text; | |
import javafx.util.Duration; |
This file contains 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
public class VirtualKeyboard { | |
private final VBox root ; | |
/** | |
* Creates a Virtual Keyboard. | |
* @param target The node that will receive KeyEvents from this keyboard. | |
* If target is null, KeyEvents will be dynamically forwarded to the focus owner | |
* in the Scene containing this keyboard. | |
*/ | |
public VirtualKeyboard(ReadOnlyObjectProperty<Node> target) { |
This file contains 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
public class VirtualKeyboard { | |
private final VBox root ; | |
/** | |
* Creates a Virtual Keyboard. | |
* @param target The node that will receive KeyEvents from this keyboard. | |
* If target is null, KeyEvents will be dynamically forwarded to the focus owner | |
* in the Scene containing this keyboard. | |
*/ | |
public VirtualKeyboard(ReadOnlyObjectProperty<Node> target) { |
This file contains 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.awt.Dimension; | |
import javafx.application.Application; | |
import javafx.scene.Scene; | |
import javafx.scene.layout.AnchorPane; | |
import javafx.stage.Stage; | |
public class ScreenResolutionDemo extends Application { |
This file contains 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.value.ChangeListener; | |
import javafx.beans.value.ObservableValue; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Side; | |
import javafx.scene.control.ContextMenu; | |
import javafx.scene.control.CustomMenuItem; | |
import javafx.scene.control.TextField; |
This file contains 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.util.function.Function; | |
import java.util.stream.Collectors; | |
import javafx.application.Application; | |
import javafx.beans.Observable; | |
import javafx.beans.binding.Bindings; | |
import javafx.beans.property.ObjectProperty; | |
import javafx.beans.property.ReadOnlyIntegerProperty; | |
import javafx.beans.property.ReadOnlyObjectProperty; | |
import javafx.beans.property.ReadOnlyObjectWrapper; |
This file contains 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.event.Event; | |
import javafx.scene.control.ContentDisplay; | |
import javafx.scene.control.TableCell; | |
import javafx.scene.control.TableColumn; | |
import javafx.scene.control.TableColumn.CellEditEvent; | |
import javafx.scene.control.TablePosition; | |
import javafx.scene.control.TableView; | |
import javafx.scene.control.TextField; | |
import javafx.scene.input.KeyCode; | |
import javafx.scene.input.KeyEvent; |
NewerOlder