I am having a problem resizing a TableView table containing text elements that wrap around TableCell elements. When you resize, hidden values ββchange, but visible elements do not recount text wrapping.

The tweets in the red box were hidden during the resize and were adjusted as expected. Tweets above the field were visible during the resize phase and still have the old packaging.
Below is my code for the resize phase.
fxSearchResultsTableTweet.setCellFactory(new Callback<TableColumn<Status, String>, TableCell<Status, String>>() { @Override public TableCell<Status, String> call(TableColumn<Status, String> arg0) { return new TableCell<Status, String>() { private Text text; @Override public void updateItem(String item, boolean empty) { super.updateItem(item, empty); if (!isEmpty()) { text = new Text(item.toString()); text.setWrappingWidth(fxSearchResultsTableTweet.getWidth()); this.setWrapText(true); setGraphic(text); } } }; } }); }
Any help would be greatly appreciated.
java javafx javafx-2 tableview
Steve
source share