-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFXMLDocument.fxml
More file actions
53 lines (51 loc) · 2.13 KB
/
FXMLDocument.fxml
File metadata and controls
53 lines (51 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Slider?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.media.MediaView?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" prefHeight="421.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="myplayer.FXMLDocumentController">
<bottom>
<HBox alignment="CENTER" prefHeight="56.0" prefWidth="600.0" BorderPane.alignment="CENTER">
<children>
<Button fx:id="play" mnemonicParsing="false" onAction="#play" text="Play">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Slider fx:id="timeSlider" prefHeight="16.0" prefWidth="270.0" />
<Label fx:id="Time" text="Time">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Label>
<Button mnemonicParsing="false" onAction="#fullScreen" text="Full Screen">
<HBox.margin>
<Insets right="10.0" />
</HBox.margin>
</Button>
<Label text="Vol ">
<HBox.margin>
<Insets />
</HBox.margin>
</Label>
<Slider fx:id="volume" prefHeight="16.0" prefWidth="49.0" />
</children>
</HBox>
</bottom>
<center>
<Pane fx:id="pane" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children>
<MediaView fx:id="mediaView" fitHeight="200.0" fitWidth="200.0" layoutY="34.0" />
<HBox alignment="CENTER" layoutX="-7.0" prefHeight="29.0" prefWidth="600.0">
<children>
<Button fx:id="openFile" mnemonicParsing="false" onAction="#chooseFile" text="open a video or audio" />
</children>
</HBox>
</children>
</Pane>
</center>
</BorderPane>