Skip to content

Instantly share code, notes, and snippets.

@altayalp
Last active August 10, 2016 23:55
Show Gist options
  • Save altayalp/600aa880286e660c27a2d285e5ea24f7 to your computer and use it in GitHub Desktop.
Save altayalp/600aa880286e660c27a2d285e5ea24f7 to your computer and use it in GitHub Desktop.
My renamer software fxml gui file
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.*?>
<?import javafx.scene.effect.*?>
<?import javafx.geometry.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.image.*?>
<?import java.lang.*?>
<?import javafx.scene.control.*?>
<VBox prefHeight="417.0" prefWidth="681.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="renamer.Controller">
<children>
<HBox alignment="CENTER_LEFT" spacing="5.0">
<children>
<Button id="choose" focusTraversable="false" mnemonicParsing="false" onMouseClicked="#chooserClick" text="Choose Directory" />
<TextField id="directory" fx:id="directory" editable="false" focusTraversable="false" minWidth="175.0" promptText="No directory selected" />
<Label text="Prefix (optional)" />
<TextField id="prefix" fx:id="prefix" focusTraversable="false" minWidth="185.0" promptText="New filename will start prefix text." />
<Button id="start" focusTraversable="false" mnemonicParsing="false" onMouseClicked="#startClick" text="Start Renamer" />
<Region HBox.hgrow="ALWAYS" />
</children>
<VBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</VBox.margin>
</HBox>
<SplitPane dividerPositions="0.3311036789297659" VBox.vgrow="ALWAYS">
<items>
<ListView id="oldName" fx:id="oldName" minWidth="330.0" prefHeight="200.0" prefWidth="200.0" />
<ListView id="newName" fx:id="newName" layoutX="10.0" layoutY="10.0" prefHeight="200.0" prefWidth="200.0" />
</items>
</SplitPane>
<HBox alignment="CENTER_LEFT" layoutX="15.0" layoutY="15.0" spacing="5.0">
<children>
<Label text="Selected file:" id="selectedFile" fx:id="selectedFile">
<HBox.margin>
<Insets bottom="5.0" left="5.0" top="5.0" />
</HBox.margin>
</Label>
<Region HBox.hgrow="ALWAYS" />
<Label layoutX="15.0" layoutY="15.0" text="Social:" />
<ImageView fitHeight="16.0" fitWidth="16.0" pickOnBounds="true" preserveRatio="true" onMouseClicked="#bugClick">
<image>
<Image url="@icons/bug.png" />
</image>
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</ImageView>
<ImageView fitHeight="16.0" fitWidth="16.0" pickOnBounds="true" preserveRatio="true" onMouseClicked="#webClick">
<image>
<Image url="@icons/web.png" />
</image>
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</ImageView>
<ImageView fitHeight="16.0" fitWidth="16.0" pickOnBounds="true" preserveRatio="true" onMouseClicked="#twitterClick">
<image>
<Image url="@icons/twitter.png" />
</image>
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</ImageView>
<ImageView fitHeight="16.0" fitWidth="16.0" layoutX="638.0" layoutY="16.0" pickOnBounds="true" preserveRatio="true" onMouseClicked="#facebookClick">
<image>
<Image url="@icons/facebook.png" />
</image>
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</ImageView>
</children>
</HBox>
</children>
</VBox>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment