/**
* This file is part of jXo.
*
* Foobar is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Foobar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* 2007 Matej Hausenblas matej.hausenblas@gmail.com
*
*/
package client.gui.dialogs;
import java.awt.Dimension;
import javax.swing.JDialog;
import javax.swing.JPanel;
import client.gui.JXoFrame;
import client.gui.misc.GU;
import client.gui.panels.MainConnexionPanel;
public class ConnexionDialog extends JDialog{
public static final int CONNECT = 1;
public static final int RECONNECT = 2;
public static final int DISCONNECT = 0;
private JXoFrame pere;
private JPanel main = null;
public ConnexionDialog(JXoFrame owner, boolean modal){
this.pere = owner;
this.setModal(modal);
// panel principal du dialogue.
this.main = new MainConnexionPanel(this);
this.getContentPane().add(main);
this.setSize(new Dimension(300, 100));
GU.center(this);
}
/**
* Reactualisation de la taille du panel principal
* @param size Taille a mettre.
*/
// public void setGridSize(int size){
// this.pere.setGridSize(size);
// }
/**
* @return the pere
*/
public JXoFrame getPere() {
return this.pere;
}
}