Esempio n. 1
0
 public void setModal(boolean modal) {
   if (modal != dialogBox.isModal()) {
     if (isShowing()) {
       if (modal) glass.show();
       else glass.hide();
     }
     dialogBox.setModal(modal);
   }
 }
Esempio n. 2
0
  public void show() {
    if (isShowing()) return;
    if (inicialized == false) {
      initContent(contentPanel);
      initActionButton();
      inicialized = true;
    } else cleanUp();

    if (isModal()) glass.show();
    dialogBox.setVisible(false);
    dialogBox.show();
    showTimer.schedule(1);
  }