Ich verstehe nicht warum mein TableView rot markiert wird.!import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
import javax.swing.text.TableView;
public class Launcher extends Application {
public static void main(String[] args) {
launch(args);
}
public void start(Stage stage) throws Exception {
GridPane root = new GridPane();
root.setPadding(new Insets(10, 10, 10, 10));
TableView tabView = new TableView();
Scene scene = new Scene(root, 500, 500);
root.add(tabView,0,1);
root.getChildren().add(tabView);
stage.setTitle("program");
stage.setScene(scene);<
stage.show();
}
}
java: javax.swing.text.TableView is abstract; cannot be instantiated