fork download
  1. /* package whatever; // don't place package name! */
  2. <TableView fx:id="tableView" GridPane.columnIndex="0" GridPane.rowIndex="1" GridPane.vgrow="ALWAYS" GridPane.hgrow="ALWAYS">
  3.  
  4. <columns>
  5. <TableColumn text="Add">
  6. <cellFactory>
  7. <CheckBoxCellFactory />
  8. </cellFactory>
  9. </TableColumn>
  10. <TableColumn text="Num">
  11. <cellValueFactory>
  12. <PropertyValueFactory property="num" />
  13. </cellValueFactory>
  14. </TableColumn>
  15. <TableColumn text="Image" prefWidth="100">
  16. <cellValueFactory>
  17. <PropertyValueFactory property="image" />
  18. </cellValueFactory>
  19. </TableColumn>
  20. <TableColumn text="Link" prefWidth="100">
  21. <cellValueFactory>
  22. <PropertyValueFactory property="link" />
  23. </cellValueFactory>
  24. </TableColumn>
  25. <TableColumn text="Title" prefWidth="100">
  26. <cellValueFactory>
  27. <PropertyValueFactory property="title" />
  28. </cellValueFactory>
  29. </TableColumn>
  30. <TableColumn text="Text" prefWidth="200">
  31. <cellValueFactory>
  32. <PropertyValueFactory property="text" />
  33. </cellValueFactory>
  34. </TableColumn>
  35. </columns>
  36. <items>
  37. <FXCollections fx:factory="observableArrayList">
  38. <BoardThread num="1234" image="img" link="link" title="title" text="text"/>
  39. </FXCollections>
  40. </items>
  41. </TableView>
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:2: error: class, interface, or enum expected
<TableView fx:id="tableView" GridPane.columnIndex="0" GridPane.rowIndex="1" GridPane.vgrow="ALWAYS" GridPane.hgrow="ALWAYS">
^
1 error
stdout
Standard output is empty