Skip to content

Commit

Permalink
Client now appears in middle of screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexicube committed Feb 17, 2015
1 parent ae32ec9 commit 85c5fea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/tilegames/hexicube/cah/client/Client.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package org.tilegames.hexicube.cah.client;

import java.awt.Dimension;
import java.awt.Font;
import java.awt.Insets;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
Expand Down Expand Up @@ -70,6 +72,8 @@ public void actionPerformed(ActionEvent e)
usernameConfirmed = true;
}
});
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
frame.setLocation(screenSize.width/2-150, screenSize.height/2-45);
frame.setVisible(true);
while(true)
{
Expand Down

0 comments on commit 85c5fea

Please sign in to comment.