forked from External/mage
TableWaitingDialog is not closeable and stays on top
This commit is contained in:
parent
71a1b5dbef
commit
e841ed0cf8
5 changed files with 10 additions and 8 deletions
|
|
@ -65,7 +65,8 @@ public class MageDialog extends javax.swing.JInternalFrame {
|
|||
public void show() {
|
||||
super.show();
|
||||
this.toFront();
|
||||
this.setClosable(!modal);
|
||||
if (modal)
|
||||
this.setClosable(false);
|
||||
if (this.modal) {
|
||||
startModal();
|
||||
}
|
||||
|
|
@ -75,8 +76,8 @@ public class MageDialog extends javax.swing.JInternalFrame {
|
|||
public void setVisible(boolean value) {
|
||||
super.setVisible(value);
|
||||
this.toFront();
|
||||
this.setClosable(!modal);
|
||||
if (modal) {
|
||||
this.setClosable(false);
|
||||
if (value) {
|
||||
startModal();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue