Permalink
Browse files

renaming MainFrame ==> GameFrame

  • Loading branch information...
1 parent f016f14 commit d6776e1bf3b8813735923c1daa3d78582a09e09c @maandree committed May 25, 2012
View
2 run.sh
@@ -26,7 +26,7 @@ elif [[ $1 = "main-da" ]]; then
# javaSeven -ea -cp bin$jars cnt.demo.EngineDemo $2
#elif [[ $1 = "frame" ]]; then
-# javaSeven -ea -cp bin$jars cnt.demo.MainFrameDemo
+# javaSeven -ea -cp bin$jars cnt.demo.GameFrameDemo
#elif [[ $1 = "network" ]]; then
# javaSeven -ea -cp bin$jars cnt.demo.NetworkingDemo
File renamed without changes.
View
@@ -43,7 +43,7 @@ public static void main(final String... args) throws Throwable
new File(args[0])
) ) );
- (new MainFrame()).setVisible(true);
+ (new GameFrame()).setVisible(true);
while (tape.available() > 0)
{
@@ -45,7 +45,7 @@ private ChatDemo()
*/
public static void main(final String... args) throws Exception
{
- (new MainFrame()).setVisible(true);
+ (new GameFrame()).setVisible(true);
final String name = args[0];
final String remote = args.length > 1 ? args[1] : null;
@@ -44,7 +44,7 @@ public static void main(final String... args) throws IOException
{
final Recorder rec = new Recorder("/dev/shm/recording.cnt");
- (new MainFrame()).setVisible(true);
+ (new GameFrame()).setVisible(true);
final PlayerRing ring = new PlayerRing();
rec.start();
@@ -41,7 +41,7 @@ private NetGameDemo()
*/
public static void main(final String... args) throws Exception
{
- (new MainFrame()).setVisible(true);
+ (new GameFrame()).setVisible(true);
final PlayerRing ring = new PlayerRing();
final Player[] player = { null };
@@ -40,7 +40,7 @@ private PeerGameDemo()
*/
public static void main(final String... args) throws Exception
{
- (new MainFrame()).setVisible(true);
+ (new GameFrame()).setVisible(true);
final PlayerRing ring = new PlayerRing();
final Player[] player = { null };
@@ -21,7 +21,7 @@
* @author Mattias Andrée, <a href="mailto:maandree@kth.se">maandree@kth.se</a>
*/
@SuppressWarnings("serial")
-public class MainFrame extends JFrame implements UpdateListener
+public class GameFrame extends JFrame implements UpdateListener
{
/**
* The default total frame width
@@ -49,7 +49,7 @@
/**
* Constructor
*/
- public MainFrame()
+ public GameFrame()
{
super("cnt: Coop Network Tetris");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //TODO only on demo
@@ -69,7 +69,7 @@ public MainFrame()
private void buildMenus()
{
try
- { JMenuMaker.makeMenu(this, "MainFrame.jmml", this, null);
+ { JMenuMaker.makeMenu(this, "GameFrame.jmml", this, null);
}
catch (final IOException err)
{ throw new IOError(err);

0 comments on commit d6776e1

Please sign in to comment.