1

I am working on a project where I create a javafx tableView that looks like so: JavaFX TableView - Conditions -> Modes

I want to take all of the elements out of the table and turn them into a two-dimensional array that looks like: [[A-> C], [B->D]].

baertt
  • 11
  • 2
  • 2
    `tableView.getItems().stream().map(i -> new String[] { i.getCondition() + "->" + i.getMode() }).toArray(String[][]::new)` or something like this... – fabian Jun 16 '17 at 16:27
  • Show us the appropriate snippets. – Demogorii Jun 16 '17 at 16:27
  • Thank you both for your help and interest. I actually was able to answer my own question once I discovered that I had a major gap in my understanding of javafx tableViews. I realized that a javafx tableview actually contains it's own observable list that made this job much easier. I could directly access the tableView with tableView.getItems() and use the list to perform the appropriate functions. – baertt Jun 20 '17 at 01:24

0 Answers0