Skip to content
Permalink
Browse files

#3 only one config window can be opened

  • Loading branch information...
raycarter committed Apr 18, 2017
1 parent f945ec9 commit 72fea9be0e17912776b8eacd6939029c6e2863f5
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/gui/configdialog/ConfigDialog.java
@@ -25,6 +25,7 @@
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
@@ -48,7 +49,7 @@
*
*/
@SuppressWarnings("rawtypes")
public class ConfigDialog extends JFrame implements ActionListener
public class ConfigDialog extends JDialog implements ActionListener
{
private static final long serialVersionUID = 1L;

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

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

0 comments on commit 72fea9b

Please sign in to comment.
You can’t perform that action at this time.