Skip to content

Commit

Permalink
#3 only one config window can be opened
Browse files Browse the repository at this point in the history
  • Loading branch information
raycarter committed Apr 18, 2017
1 parent f945ec9 commit 72fea9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/gui/configdialog/ConfigDialog.java
Expand Up @@ -25,6 +25,7 @@
import javax.swing.Icon; import javax.swing.Icon;
import javax.swing.ImageIcon; import javax.swing.ImageIcon;
import javax.swing.JButton; import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JPanel; import javax.swing.JPanel;
Expand All @@ -48,7 +49,7 @@
* *
*/ */
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public class ConfigDialog extends JFrame implements ActionListener public class ConfigDialog extends JDialog implements ActionListener
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;


Expand Down Expand Up @@ -117,6 +118,7 @@ public ConfigDialog(Class activeElem, boolean show)


private void initialization(boolean show) private void initialization(boolean show)
{ {
this.setModalityType(ModalityType.APPLICATION_MODAL);
this.setResizable(true); this.setResizable(true);
cd = this; cd = this;
this.cdLayer = ConfigDialogLayer.getInstance(); this.cdLayer = ConfigDialogLayer.getInstance();
Expand Down

0 comments on commit 72fea9b

Please sign in to comment.