-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sample.fxml
104 lines (102 loc) · 4.79 KB
/
Sample.fxml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Slider?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.effect.DropShadow?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.text.Font?>
<AnchorPane fx:id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.SampleController">
<children>
<HBox alignment="CENTER" layoutX="99.0" layoutY="433.0" prefHeight="132.0" prefWidth="250.0" style="-fx-spacing: 45;" AnchorPane.leftAnchor="80.0">
<children>
<Button fx:id="previousButton" mnemonicParsing="false" onAction="#previousMedia" prefHeight="0.0" prefWidth="0.0">
<font>
<Font size="11.0" />
</font>
<graphic>
<ImageView fitHeight="63.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../images/back.png" />
</image></ImageView>
</graphic>
</Button>
<Button fx:id="playButton" maxHeight="0.0" maxWidth="0.0" minHeight="0.0" minWidth="0.0" mnemonicParsing="false" onAction="#playMedia" prefHeight="0.0" prefWidth="0.0" style="-fx-padding: 10;">
<graphic>
<ImageView fx:id="playPauseImage" fitHeight="40.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../images/play.png" />
</image>
</ImageView>
</graphic>
</Button>
<Button fx:id="nextButton" mnemonicParsing="false" onAction="#nextMedia" prefHeight="0.0" prefWidth="0.0">
<font>
<Font size="11.0" />
</font>
<graphic>
<ImageView fitHeight="40.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../images/next.png" />
</image>
</ImageView>
</graphic>
</Button>
</children>
</HBox>
<Label fx:id="songLabel" alignment="CENTER" contentDisplay="CENTER" layoutX="88.0" layoutY="36.0" text="MP3 Player" AnchorPane.leftAnchor="88.0">
<font>
<Font name="Roboto Bold" size="16.0" />
</font>
</Label>
<Slider fx:id="progressSlider" layoutX="44.0" layoutY="368.0" prefHeight="54.0" prefWidth="260.0" AnchorPane.leftAnchor="80.0">
<cursor>
<Cursor fx:constant="HAND" />
</cursor></Slider>
<Label fx:id="musicTime" layoutX="95.0" layoutY="424.0" text="00:00/00:00" AnchorPane.leftAnchor="80.0">
<font>
<Font name="Ubuntu Mono" size="18.0" />
</font>
</Label>
<ImageView fitHeight="250.0" fitWidth="250.0" layoutX="72.0" layoutY="94.0" pickOnBounds="true" preserveRatio="true" AnchorPane.leftAnchor="80.0">
<image>
<Image url="@../images/b27ce351582d22b21f29d896d577cac0.jpg" />
</image>
<effect>
<DropShadow />
</effect>
</ImageView>
<ToolBar layoutX="16.0" layoutY="739.0" prefHeight="40.0" prefWidth="200.0" style="-fx-background-color: #ffd54f;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
<items>
<ImageView fitHeight="40.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../images/Logo.png" />
</image>
</ImageView>
<Label style="-fx-text-fill: black;" text="Bobinsky">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Label>
</items>
</ToolBar>
<HBox layoutX="130.0" layoutY="559.0" prefHeight="36.0" prefWidth="200.0" style="-fx-spacing: 5;" AnchorPane.leftAnchor="80.0">
<children>
<ImageView fitHeight="150.0" fitWidth="40.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@../images/som.png" />
</image>
</ImageView>
<Slider fx:id="volumeSlider" max="100.0" prefHeight="36.0" prefWidth="150.0" value="50.0">
<cursor>
<Cursor fx:constant="HAND" />
</cursor>
</Slider>
</children>
</HBox>
</children>
</AnchorPane>