Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6.  
  7. package connecttodifferentdatabases;
  8.  
  9. import javafx.collections.FXCollections;
  10. import javafx.collections.ObservableList;
  11. import javafx.scene.control.TableColumn;
  12. import javafx.scene.control.TableRow;
  13.  
  14. /**
  15.  *
  16.  * @author Eskil Hesselroth
  17.  */
  18. public class Table  {
  19.            ObservableList<String> rows= FXCollections.observableArrayList();
  20.         ObservableList<TableColumn> listofColumns;
  21.    
  22.        
  23.    
  24.  public Table() {
  25.        rows  = FXCollections.observableArrayList();
  26.        listofColumns  = FXCollections.observableArrayList();
  27. }
  28.    
  29.     public void addColumn(TableColumn column) {
  30.         listofColumns.add(column);
  31.         System.out.println("heerrererer " + column);
  32.  
  33.     }
  34.    
  35.         public void addRows(String row) {
  36.         rows.add(row);
  37.      
  38.  
  39.     }
  40.    
  41.  
  42.    
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement