progress indicator for javafx app
<p>I'm using below code for showing progress indicator for loading tasks.I'm using MaskerPane from ControlsFX progress indicator.
But when i using the component , maskerpane only showing 1 time..Please suggest a better way for showing progress indicator.</p>

<pre><code>@FXML
    private MaskerPane progressPane;
 @FXML
        private void addMemberSelect() {
            Task task = new Task&lt;Void&gt;() {
                @Override
                protected Void call() throws Exception {
                    progressPane.setVisible(true);
                    return null;
                }
                @Override
                protected void succeeded(){
                    super.succeeded();
                    content.setContent(null);
                    ScreensController colllectScreenController = new ScreensController();
                    colllectScreenController.loadScreen(Screens.ADD_MEMBER);
                    colllectScreenController.setScreen(Screens.ADD_MEMBER);
                    content.setContent(colllectScreenController);
                    progressPane.setVisible(false);
                }
            };
            new Thread(task).start();
        }
</code></pre>