How to pause service when it's not visible in TabPane

Tomas Mikula tomas.mikula at
Wed Jul 30 10:22:41 UTC 2014

What about

    tab.selectedProperty().addListener((obs, old, selected) -> {
        if(selected) {
        } else {



On Wed, Jul 30, 2014 at 9:07 AM, Peter Penzov <peter.penzov at> wrote:
> Hi All,
>    I have a TabPane with JavaFX service which displays some data. I'm
> interested is there a way to pause the service when I switch the tabs and
> the service is not visible? It 'will same me a lot of CPU resources if
> there is a way to implement this.
> BR,
> Peter

More information about the openjfx-dev mailing list