/*
Copyright (C) 2010 Petri Tuononen
This program 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 3 of the License, or
(at your option) any later version.
This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
package gui.windows;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.LayoutManager;
import gui.Gui;
import gui.panels.JoinPanel;
/**
* Join a game window.
*
* @author Petri Tuononen
*/
public class JoinGame extends Gui {
private static final long serialVersionUID = -8871608265061270446L;
/**
* Default constructor.
*/
public JoinGame() {
super(new Dimension(400, 300), new FlowLayout());
getFrame().add(new JoinPanel());
getFrame().pack();
}
/**
* Constructor.
* @param d Dimension
* @param layout LayoutManager
*/
public JoinGame(Dimension d, LayoutManager layout) {
super(d, layout);
getFrame().add(new JoinPanel());
}
/**
* NMain method.
* @param args
*/
public static void main(String[] args) {
new JoinGame();
}
}
|