summaryrefslogtreecommitdiff
path: root/client/SplashScreen.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-15 12:59:17 +0000
committerPaul Buetow <paul@buetow.org>2009-02-15 12:59:17 +0000
commit2a93a612375aa6c8fd35280778624d486a81d2d2 (patch)
tree5f0b88be2b6bb5b0eb8a33f5a3e996e2352655c5 /client/SplashScreen.java
parent3f06de0d35403234601f3bc8325ec8d37071d4a3 (diff)
run astyle
Diffstat (limited to 'client/SplashScreen.java')
-rw-r--r--client/SplashScreen.java66
1 files changed, 33 insertions, 33 deletions
diff --git a/client/SplashScreen.java b/client/SplashScreen.java
index 5645bae..6ad8416 100644
--- a/client/SplashScreen.java
+++ b/client/SplashScreen.java
@@ -5,38 +5,38 @@ import javax.swing.*;
import shared.*;
public class SplashScreen extends JWindow implements Runnable {
- private static final long serialVersionUID = 1L;
-
- /**
- * A simple little method to show a title screen in the center
- * of the screen for the amount of time given in the constructor
- */
- public void run() {
- JPanel jPanel = (JPanel)getContentPane();
- jPanel.setBackground(Color.BLACK);
- jPanel.setForeground(Color.WHITE);
-
- // Set the window's bounds, centering the window
- int iWidth = 411;
- int iHeight = 261;
- Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
-
- int x = (dimension.width-iWidth)/2;
- int y = (dimension.height-iHeight)/2;
- setBounds(x,y,iWidth,iHeight);
-
- JLabel jLabel = new JLabel(new ImageIcon("images/netcal.png"));
- jPanel.add(jLabel, BorderLayout.CENTER);
- jPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));
- setVisible(true);
-
- try {
- Thread.sleep(3000);
-
- } catch (Exception e) {
- Main.infoMessage(e.getMessage());
- }
-
- dispose();
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * A simple little method to show a title screen in the center
+ * of the screen for the amount of time given in the constructor
+ */
+ public void run() {
+ JPanel jPanel = (JPanel)getContentPane();
+ jPanel.setBackground(Color.BLACK);
+ jPanel.setForeground(Color.WHITE);
+
+ // Set the window's bounds, centering the window
+ int iWidth = 411;
+ int iHeight = 261;
+ Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
+
+ int x = (dimension.width-iWidth)/2;
+ int y = (dimension.height-iHeight)/2;
+ setBounds(x,y,iWidth,iHeight);
+
+ JLabel jLabel = new JLabel(new ImageIcon("images/netcal.png"));
+ jPanel.add(jLabel, BorderLayout.CENTER);
+ jPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));
+ setVisible(true);
+
+ try {
+ Thread.sleep(3000);
+
+ } catch (Exception e) {
+ Main.infoMessage(e.getMessage());
+ }
+
+ dispose();
}
} \ No newline at end of file