copyTableCell(tableView);
}
});
copyCellMenuItem.setOnAction(copyCell.getOnAction());
pane.getChildren().add(copyCell);
pane.getChildren().add(new Label("Search"));
final TextField textField = new TextField();
textField.textProperty().addListener(new ChangeListener<String>() {
@Override
public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
if (newValue!=null && newValue.length()>1){
searchInTable(tableView, newValue,regExp.isSelected());
}
}
});
regExp.selectedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
if (newValue!=null){
searchInTable(tableView,textField.getText(),newValue);
}
}
});
textField.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
searchInTable(tableView,textField.getText(),regExp.isSelected());
}
});
HBox.setHgrow(textField,Priority.ALWAYS);
final Label count = new Label("count: 0");
// tableView.itemsProperty().addListener(new ChangeListener<ObservableList<M>>() {
// @Override
// public void changed(ObservableValue<? extends ObservableList<M>> observable, ObservableList<M> oldValue,
// ObservableList<M> newValue) {
// if (newValue!=null){