Crimson465

FXML

Dec 23rd, 2019
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.34 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?import javafx.geometry.Insets?>
  4. <?import javafx.scene.control.Button?>
  5. <?import javafx.scene.control.Slider?>
  6. <?import javafx.scene.layout.BorderPane?>
  7. <?import javafx.scene.layout.HBox?>
  8. <?import javafx.scene.layout.StackPane?>
  9. <?import javafx.scene.layout.VBox?>
  10. <?import javafx.scene.media.MediaView?>
  11.  
  12. <BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="700.0" stylesheets="@style.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="amedia.FXMLDocumentController">
  13.    <bottom>
  14.       <VBox alignment="CENTER" prefHeight="40.0" prefWidth="600.0" BorderPane.alignment="CENTER">
  15.          <children>
  16.             <HBox alignment="CENTER" prefHeight="40.0">
  17.                <children>
  18.                   <Button fx:id="openFile" mnemonicParsing="false" onAction="#handleButtonAction" text="openfile">
  19.                      <HBox.margin>
  20.                         <Insets right="10.0" />
  21.                      </HBox.margin></Button>
  22.                   <Button fx:id="playButton" mnemonicParsing="false" onAction="#playVideo" text="play">
  23.                      <HBox.margin>
  24.                         <Insets right="10.0" />
  25.                      </HBox.margin></Button>
  26.                   <Button fx:id="pauseButton" mnemonicParsing="false" onAction="#pauseVideo" text="pause">
  27.                      <HBox.margin>
  28.                         <Insets right="10.0" />
  29.                      </HBox.margin></Button>
  30.                   <Button fx:id="stopButton" mnemonicParsing="false" onAction="#stopVideo" text="stop">
  31.                      <HBox.margin>
  32.                         <Insets right="10.0" />
  33.                      </HBox.margin></Button>
  34.                   <Button mnemonicParsing="false" onAction="#slowerVideo" text="&lt;&lt;&lt;">
  35.                      <HBox.margin>
  36.                         <Insets right="10.0" />
  37.                      </HBox.margin></Button>
  38.                   <Button mnemonicParsing="false" onAction="#slowVideo" text="&lt;&lt;">
  39.                      <HBox.margin>
  40.                         <Insets right="10.0" />
  41.                      </HBox.margin></Button>
  42.                   <Button mnemonicParsing="false" onAction="#fastVideo" text="&gt;&gt;">
  43.                      <HBox.margin>
  44.                         <Insets right="10.0" />
  45.                      </HBox.margin></Button>
  46.                   <Button mnemonicParsing="false" onAction="#fasterVideo" text="&gt;&gt;&gt;">
  47.                      <HBox.margin>
  48.                         <Insets right="10.0" />
  49.                      </HBox.margin></Button>
  50.                   <Button mnemonicParsing="false" onAction="#exitVideo" text="Exit">
  51.                      <HBox.margin>
  52.                         <Insets right="10.0" />
  53.                      </HBox.margin></Button>
  54.                   <Slider fx:id="slider" />
  55.                </children>
  56.             </HBox>
  57.          </children>
  58.       </VBox>
  59.    </bottom>
  60.    <center>
  61.       <StackPane prefHeight="150.0" prefWidth="200.0" BorderPane.alignment="CENTER">
  62.          <children>
  63.             <MediaView fx:id="mediaView" fitHeight="200.0" fitWidth="200.0" />
  64.             <Slider fx:id="seekSlider" StackPane.alignment="BOTTOM_CENTER" />
  65.          </children>
  66.       </StackPane>
  67.    </center>
  68. </BorderPane>
Advertisement
Add Comment
Please, Sign In to add comment