32 lines
904 B
Java
32 lines
904 B
Java
package sbu.javafx;
|
|
|
|
import javafx.fxml.FXML;
|
|
import javafx.event.ActionEvent;
|
|
import javafx.scene.control.Label;
|
|
import javafx.scene.input.MouseEvent;
|
|
import javafx.scene.layout.VBox;
|
|
|
|
public class MusicController {
|
|
|
|
// TODO: Define your UI components using the @FXML annotation.
|
|
|
|
//TODO: Implement the logic to play a song. This method should update the UI to show which song is currently playing.
|
|
|
|
@FXML
|
|
public void handlePlayAction() {
|
|
//Update labels, change button icons, etc.
|
|
}
|
|
|
|
//TODO: Logic to add a specific song to the user's playlist.
|
|
|
|
public void addToPlaylist(String songName) {
|
|
//Add the song to a list or update a ListView.
|
|
}
|
|
|
|
// TODO:This method should open a new window or change the current scene to display the "Playlist" page.
|
|
|
|
public void openPlaylistWindow() {
|
|
//Create a new stage and show the playlist UI.
|
|
}
|
|
}
|