我現在控制器類 public class Controller {
@FXML
public javafx.scene.image.ImageView imageView;
@FXML
private MenuItem openItem;
@FXML
public void openAction(ActionEvent event) {
FileChooser
import javax.swing.JFrame;
public class Choose extends javax.swing.JFrame {
/**
* Creates new form NewJFrame
*/
public Choose() {
initComponents();
}
@SuppressWarnings("unchecked")
//
一個Button這是創建用戶界面的主類: public class Test extends Application {
@Override
public void start(Stage primaryStage) {
FlowPane mainPane = new FlowPane();
FlowPane query = new FlowPane();