Cleanup
parent
8c6c904632
commit
bb9e223408
|
@ -32,24 +32,22 @@ public class Main extends Application {
|
|||
initStage.show();
|
||||
|
||||
ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
|
||||
executor.schedule(() -> {
|
||||
Platform.runLater(() -> {
|
||||
initStage.close();
|
||||
executor.schedule(() -> Platform.runLater(() -> {
|
||||
initStage.close();
|
||||
|
||||
Parent root = null;
|
||||
try {
|
||||
root = FXMLLoader.load(getClass().getResource("view/interface.fxml"));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
System.exit(284);
|
||||
}
|
||||
mainStage = new Stage(StageStyle.DECORATED);
|
||||
mainStage.setTitle("Undefined");
|
||||
mainStage.setScene(new Scene(root, 640, 480));
|
||||
mainStage.show();
|
||||
executor.shutdown();
|
||||
});
|
||||
}, 1500, TimeUnit.MILLISECONDS);
|
||||
Parent root = null;
|
||||
try {
|
||||
root = FXMLLoader.load(getClass().getResource("view/interface.fxml"));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
System.exit(284);
|
||||
}
|
||||
mainStage = new Stage(StageStyle.DECORATED);
|
||||
mainStage.setTitle("Undefined");
|
||||
mainStage.setScene(new Scene(root, 640, 480));
|
||||
mainStage.show();
|
||||
executor.shutdown();
|
||||
}), 1500, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ public class InterfaceController {
|
|||
private Label currentArtist;
|
||||
|
||||
@FXML
|
||||
private ListView showList;
|
||||
private ListView<String> showList;
|
||||
private ObservableList<String> showListItems = FXCollections.observableArrayList("Albums", "Artists", "Songs");
|
||||
|
||||
@FXML
|
||||
|
@ -99,7 +99,7 @@ public class InterfaceController {
|
|||
// Raw bindings
|
||||
|
||||
showList.setItems(showListItems);
|
||||
((SelectionModel) showList.selectionModelProperty().get()).clearAndSelect(0);
|
||||
(showList.selectionModelProperty().get()).clearAndSelect(0);
|
||||
|
||||
player.muteProperty().bind(muteToggle.selectedProperty());
|
||||
player.volumeProperty().bind(volumeSlider.valueProperty());
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
xmlns="http://javafx.com/javafx/8.0.40">
|
||||
<children>
|
||||
<ImageView fx:id="imageView" fitHeight="180.0" fitWidth="180.0" pickOnBounds="true"
|
||||
preserveRatio="true"></ImageView>
|
||||
preserveRatio="true"/>
|
||||
<VBox style="-fx-background-color: #0002, linear-gradient(#0000 0%, #0006 100%);" AnchorPane.bottomAnchor="0.0"
|
||||
AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
|
||||
<children>
|
||||
|
|
Loading…
Reference in New Issue