Skip to content

Instantly share code, notes, and snippets.

@sedj601
Created April 25, 2024 14:53
Show Gist options
  • Save sedj601/1fc68bdbdd4dcf7e843f4faa5c5c83be to your computer and use it in GitHub Desktop.
Save sedj601/1fc68bdbdd4dcf7e843f4faa5c5c83be to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<VBox alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="720.0" prefWidth="1080.0" style="-fx-background-color: #e8eefb;" xmlns="http://javafx.com/javafx/18" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Label alignment="CENTER" text="Image to Text Converter">
<font>
<Font name="System Bold" size="36.0" />
</font>
</Label>
<Label text="An online image to text converter to extract text from images. Upload your photo, to get text file instantly.">
<font>
<Font size="14.0" />
</font>
</Label>
<StackPane style="-fx-background-color: #ffffff;" VBox.vgrow="ALWAYS">
<VBox.margin>
<Insets bottom="100.0" left="100.0" right="100.0" top="20.0" />
</VBox.margin>
<children>
<VBox alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" spacing="10.0" StackPane.alignment="CENTER">
<children>
<ImageView fitHeight="150.0" fitWidth="200.0" pickOnBounds="true" preserveRatio="true" />
<Label text="Drag &amp; Drop, Upload or Paste Image">
<font>
<Font size="24.0" />
</font>
</Label>
<Label text="Supported Formates: JPG, PNG, GIF, JFIF(JPEG), PDF">
<font>
<Font size="14.0" />
</font>
</Label>
<HBox maxWidth="-Infinity" spacing="10.0">
<children>
<ComboBox promptText="Browse" />
<Button mnemonicParsing="false" text="link" />
</children>
</HBox>
</children>
</VBox>
</children>
</StackPane>
</children>
</VBox>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment