96 lines
5.1 KiB
XML
96 lines
5.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.*?>
|
|
<?import javafx.scene.layout.*?>
|
|
<?import java.net.URL?>
|
|
|
|
<VBox alignment="TOP_CENTER" spacing="20.0" styleClass="root-container" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sbu.javafx.MusicController">
|
|
|
|
<stylesheets>
|
|
<URL value="@style.css" />
|
|
</stylesheets>
|
|
|
|
<padding>
|
|
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
|
|
</padding>
|
|
|
|
<Label text="Music Player" style="-fx-font-size: 32px; -fx-font-weight: bold;" />
|
|
|
|
<VBox styleClass="music-table">
|
|
|
|
<GridPane hgap="10" styleClass="table-header">
|
|
<padding><Insets bottom="10" left="10" right="10" top="10" /></padding>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="150" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="150" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="80" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="120" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="80" />
|
|
</columnConstraints>
|
|
<Label styleClass="header-label" text="Song Title" GridPane.columnIndex="0" />
|
|
<Label styleClass="header-label" text="Artist Name" GridPane.columnIndex="1" />
|
|
<Label styleClass="header-label" text="Duration" GridPane.columnIndex="2" />
|
|
<Label styleClass="header-label" text="Add to Playlist" GridPane.columnIndex="3" alignment="CENTER" prefWidth="120"/>
|
|
<Label styleClass="header-label" text="Play" GridPane.columnIndex="4" alignment="CENTER" prefWidth="80"/>
|
|
</GridPane>
|
|
|
|
<GridPane hgap="10" styleClass="table-row">
|
|
<padding><Insets bottom="15" left="10" right="10" top="15" /></padding>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="150" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="150" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="80" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="120" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="80" />
|
|
</columnConstraints>
|
|
<Label text="Summertime Sadness" GridPane.columnIndex="0" />
|
|
<Label text="Lana Del Rey" GridPane.columnIndex="1" />
|
|
<Label text="04:24" GridPane.columnIndex="2" />
|
|
<Button text="Add to Playlist" GridPane.columnIndex="3" GridPane.halignment="CENTER" onAction="#addSummertime" />
|
|
<Button text="Play" prefWidth="60" GridPane.columnIndex="4" GridPane.halignment="CENTER" onAction="#playSummertime" />
|
|
</GridPane>
|
|
|
|
<GridPane hgap="10" styleClass="table-row">
|
|
<padding><Insets bottom="15" left="10" right="10" top="15" /></padding>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="150" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="150" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="80" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="120" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="80" />
|
|
</columnConstraints>
|
|
<Label text="Spaghetti" GridPane.columnIndex="0" />
|
|
<Label text="City of the Sun" GridPane.columnIndex="1" />
|
|
<Label text="05:14" GridPane.columnIndex="2" />
|
|
<Button text="Add to Playlist" GridPane.columnIndex="3" GridPane.halignment="CENTER" onAction="#addSpaghetti" />
|
|
<Button text="Play" prefWidth="60" GridPane.columnIndex="4" GridPane.halignment="CENTER" onAction="#playSpaghetti" />
|
|
</GridPane>
|
|
|
|
<GridPane hgap="10" styleClass="no-border">
|
|
<padding><Insets bottom="15" left="10" right="10" top="15" /></padding>
|
|
<columnConstraints>
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="150" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="150" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="80" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="120" />
|
|
<ColumnConstraints hgrow="SOMETIMES" minWidth="80" />
|
|
</columnConstraints>
|
|
<Label text="Bad Shodam" GridPane.columnIndex="0" />
|
|
<Label text="Yas" GridPane.columnIndex="1" />
|
|
<Label text="05:34" GridPane.columnIndex="2" />
|
|
<Button text="Add to Playlist" GridPane.columnIndex="3" GridPane.halignment="CENTER" onAction="#addBadShodam" />
|
|
<Button text="Play" prefWidth="60" GridPane.columnIndex="4" GridPane.halignment="CENTER" onAction="#playBadShodam" />
|
|
</GridPane>
|
|
|
|
</VBox>
|
|
|
|
<Region VBox.vgrow="ALWAYS" />
|
|
|
|
<HBox alignment="CENTER_LEFT" spacing="20" styleClass="footer-bar">
|
|
<padding><Insets bottom="20" left="20" right="20" top="20" /></padding>
|
|
<Label fx:id="nowPlayingLabel" text="Now Playing: -" />
|
|
<Region HBox.hgrow="ALWAYS" />
|
|
<Button text="Open Playlist" onAction="#openPlaylistWindow" prefHeight="40" prefWidth="150" />
|
|
</HBox>
|
|
</VBox> |