forked from External/mage
This commit is contained in:
parent
89f8b1420e
commit
78d036b6bb
9 changed files with 74 additions and 20 deletions
|
|
@ -165,7 +165,11 @@ public class PickChoiceDialog extends MageDialog {
|
|||
}
|
||||
|
||||
// window settings
|
||||
MageFrame.getDesktop().add(this, JLayeredPane.PALETTE_LAYER);
|
||||
if (this.isModal()){
|
||||
MageFrame.getDesktop().add(this, JLayeredPane.MODAL_LAYER);
|
||||
}else{
|
||||
MageFrame.getDesktop().add(this, JLayeredPane.PALETTE_LAYER);
|
||||
}
|
||||
if (mageDialogState != null) {
|
||||
mageDialogState.setStateToDialog(this);
|
||||
|
||||
|
|
@ -174,7 +178,7 @@ public class PickChoiceDialog extends MageDialog {
|
|||
this.setLocation(centered.x, centered.y);
|
||||
GuiDisplayUtil.keepComponentInsideScreen(centered.x, centered.y, this);
|
||||
}
|
||||
|
||||
|
||||
// final load
|
||||
loadData();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue