2023年2月17日14:19:28 修改播放器
parent
2c23f908cc
commit
014e3eeaa2
|
|
@ -8,11 +8,17 @@ import com.zhangmeng.tools.utils.AlertUtils;
|
|||
import com.zhangmeng.tools.utils.ImagePath;
|
||||
import com.zhangmeng.tools.utils.ResourcesUtils;
|
||||
import com.zhangmeng.tools.utils.SvgUtils;
|
||||
import com.zhangmeng.tools.views.HomeView;
|
||||
import javafx.application.Application;
|
||||
import javafx.beans.property.SimpleDoubleProperty;
|
||||
import javafx.collections.FXCollections;
|
||||
import javafx.collections.ObservableList;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.ListView;
|
||||
import javafx.scene.control.SplitPane;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.image.Image;
|
||||
import javafx.scene.image.ImageView;
|
||||
|
|
@ -27,6 +33,7 @@ import org.apache.xmlgraphics.util.ClasspathResource;
|
|||
import java.awt.event.InputEvent;
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
|
|
@ -63,6 +70,7 @@ public class MusicSetController {
|
|||
String path = file.getAbsolutePath();
|
||||
text_file.setText(path);
|
||||
}
|
||||
MusicController.addDir(file);
|
||||
}
|
||||
|
||||
@FXML
|
||||
|
|
@ -75,10 +83,10 @@ public class MusicSetController {
|
|||
setPath(path);
|
||||
//关闭
|
||||
Stage stage = (Stage) text_file.getScene().getWindow();
|
||||
Stage stageOwner = (Stage) stage.getOwner();
|
||||
stage.close();
|
||||
}
|
||||
|
||||
|
||||
public void setPath(String path){
|
||||
Resource resource = new ClassPathResource("music.properties");
|
||||
InputStream inputStream = resource.getStream();
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
</MenuBar>
|
||||
<SplitPane fx:id="splitPane" dividerPositions="0.5" layoutY="25.0" prefHeight="575.0" prefWidth="1200.0"
|
||||
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
|
||||
AnchorPane.topAnchor="25.0">
|
||||
AnchorPane.topAnchor="25.0" id="#splitPane">
|
||||
<items>
|
||||
<ListView id="listView" fx:id="listView" maxWidth="300.0" minWidth="200.0" prefHeight="200.0" prefWidth="200.0"/>
|
||||
<AnchorPane prefHeight="200.0" prefWidth="200.0"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue