Example files of JavaFX added from openjfx

This commit is contained in:
name 2020-12-15 11:28:32 +01:00
parent 4f9d4b93c2
commit b42888dc5d
6 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox alignment="CENTER" prefHeight="241.0" prefWidth="397.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.PrimaryController">
<Label prefHeight="167.0" prefWidth="69.0" text="Primary View" />
<Button onAction="#switchToSecondary" prefHeight="109.0" prefWidth="152.0" text="Switch to Secondary View" />
<padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
</padding>
</VBox>

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Button?>
<?import javafx.geometry.Insets?>
<VBox alignment="CENTER" spacing="20.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="fr.myny.gui.SecondaryController">
<Label text="Secondary View" />
<Button text="Switch to Primary View" onAction="#switchToPrimary" />
<padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
</padding>
</VBox>