generated from JPro-one/HelloJPro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
67 additions
and
75 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
.root { | ||
-fx-background-color: white; | ||
} | ||
|
||
.label { | ||
-fx-font-size: 16px; | ||
} | ||
|
||
.hello-label { | ||
-fx-translate-y: -80px; | ||
-fx-text-fill: #999; | ||
-fx-font-size: 32px; | ||
} | ||
|
||
.platform-label { | ||
-fx-translate-y: -10px; | ||
-fx-text-fill: #BBB; | ||
-fx-font-size: 14px; | ||
} | ||
|
||
.progress-indicator { | ||
-fx-max-width: 32px; | ||
-fx-max-height: 32px; | ||
-fx-spacing: 0.5em; | ||
-fx-padding: 0.5em; | ||
} |
27 changes: 11 additions & 16 deletions
27
src/main/resources/one/jpro/hellojpro/fxml/HelloJPro.fxml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.image.Image?> | ||
<?import javafx.scene.image.ImageView?> | ||
<?import javafx.scene.layout.StackPane?> | ||
<StackPane | ||
xmlns:fx="http://javafx.com/fxml" | ||
stylesheets="@../css/HelloJPro.css" | ||
prefWidth="800" prefHeight="600" | ||
fx:id="root" | ||
fx:controller="one.jpro.hellojpro.HelloJProFXMLController"> | ||
<Label text="Hello" styleClass="hello-label"></Label> | ||
<ImageView fx:id="logo" fitWidth="300" preserveRatio="true"> | ||
<Image url="@../img/JPRO_logo_rgb.png"></Image> | ||
</ImageView> | ||
<Label fx:id="platformLabel" text="Platform: " styleClass="platform-label" StackPane.alignment="BOTTOM_CENTER"></Label> | ||
</StackPane> | ||
<?import javafx.scene.control.Button?> | ||
<?import javafx.scene.layout.VBox?> | ||
|
||
|
||
<VBox fx:id="root" alignment="CENTER" stylesheets="@../css/HelloJPro.css" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="one.jpro.hellojpro.HelloJProFXMLController"> | ||
<children> | ||
<Button mnemonicParsing="false" onAction="#onCreateVirtualImageWorking" text=" createVirtualImage(String url, int w, int h)" /> | ||
<Button mnemonicParsing="false" onAction="#onCreateVirtualImageNotWorking" text="createVirtualImage(String url, int w, int h, false)" /> | ||
<Button mnemonicParsing="false" onAction="#onCreateVirtualImageNotWorkingWithProxy" text="createVirtualImage(String url, int w, int h, true)" /> | ||
</children> | ||
</VBox> |