jplayer/src/main/java/org/jcodec/player/ui/Controls.java
private void scheduleClose() {
        if (task != null)
            task.cancel();
        task = new TimerTask() {
            public void run() {
                state = State.HIDING;
            }
        };
        timer.schedule(task, 1000);
    }
private void scheduleClose() {
        if (task != null)
            task.cancel();
        task = new TimerTask() {
            public void run() {
                state = State.HIDING;
            }
        };
        timer.schedule(task, 1000);
    }
private void scheduleClose ( ) { if ( task != null ) task . cancel ( ) ; task = new TimerTask ( ) { public void run ( ) { state = State . HIDING ; } } ; timer . schedule ( task , 1000 ) ; }
}
}