Java Reference
In-Depth Information
closeXmark);
closeApp.setOnMouseClicked((MouseEvent event) -> {
Platform.exit();
});
root.getChildren().add(closeApp);
primaryStage.setScene(scene);
primaryStage.show();
previousLocation = new
Point2D(primaryStage.getX(), primaryStage.getY());
}
}
Figure 16-2 shows a JavaFX MP3 player with visualizations.
Figure 16-2 . JavaFX MP3 player
How It Works
Before you get started, I'll discuss the instructions on how to operate the MP3 player.
The users will be able to drag and drop an audio file into the application area to be
 
 
Search WWH ::




Custom Search