Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package connecttodifferentdatabases;
- import javafx.collections.FXCollections;
- import javafx.collections.ObservableList;
- import javafx.scene.control.TableColumn;
- import javafx.scene.control.TableRow;
- /**
- *
- * @author Eskil Hesselroth
- */
- public class Table {
- ObservableList<String> rows= FXCollections.observableArrayList();
- ObservableList<TableColumn> listofColumns;
- public Table() {
- rows = FXCollections.observableArrayList();
- listofColumns = FXCollections.observableArrayList();
- }
- public void addColumn(TableColumn column) {
- listofColumns.add(column);
- System.out.println("heerrererer " + column);
- }
- public void addRows(String row) {
- rows.add(row);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement