If : alert.show(); doesn't works try this : anyViewObject.post(() -> { // Create your alert here alert.show(); });