4 import java.util.ResourceBundle;
6 import javafx.application.Application;
7 import javafx.fxml.FXML;
8 import javafx.fxml.FXMLLoader;
9 import javafx.fxml.Initializable;
10 import javafx.scene.Scene;
11 import javafx.scene.control.TableView;
12 import javafx.scene.layout.Pane;
13 import javafx.stage.Stage;
14 import tableViewExamples.StringMatrixExampleSub;
27 String[]
otsikot = {
"ala",
"aloitusvuosi",
"h/vko"};
29 {
"kalastus",
"1955",
"20"},
30 {
"laiskottelu",
"1950",
"20"},
31 {
"työn pakoilu",
"1952",
"40"}
45 public void start(Stage primaryStage) {
47 Pane root = (Pane)FXMLLoader.load(getClass().getResource(
"StringMatrixView.fxml"));
48 Scene scene =
new Scene(root,400,400);
49 primaryStage.setScene(scene);
51 }
catch(Exception e) {
61 public static void main(String[] args) {