public void setModal(boolean modal) { if (modal != dialogBox.isModal()) { if (isShowing()) { if (modal) glass.show(); else glass.hide(); } dialogBox.setModal(modal); } }
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); }