1

I have a table, one column, n rows. I need to show popup window on double click to tableview cell. Each row have own popup.

4

1 回答 1

2
yourCell.setOnMouseClicked(new EventHandler<MouseEvent>() {
            @Override
            public void handle(MouseEvent mouseEvent) {
                if (mouseEvent.getButton().equals(MouseButton.PRIMARY)) {
                    if (mouseEvent.getClickCount() == 2) {

                        //codes to show your Popup window

                    }
                }
            }
        });
于 2013-06-14T09:57:38.310 回答