summaryrefslogtreecommitdiff
path: root/sources/client/SplashScreen.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2009-02-18 23:01:21 +0000
committerPaul Buetow <paul@buetow.org>2009-02-18 23:01:21 +0000
commit89c679eb813611a2ede208b4c8e27c7f596b3be7 (patch)
treef44c19435286e78b9e8002990e1b55183a4fbc49 /sources/client/SplashScreen.java
parent177f346a9bbe455dc12fd26dfa2c586585c28c1e (diff)
added copyright to header
Diffstat (limited to 'sources/client/SplashScreen.java')
-rw-r--r--sources/client/SplashScreen.java70
1 files changed, 37 insertions, 33 deletions
diff --git a/sources/client/SplashScreen.java b/sources/client/SplashScreen.java
index 6ad8416..ec33d3a 100644
--- a/sources/client/SplashScreen.java
+++ b/sources/client/SplashScreen.java
@@ -1,3 +1,7 @@
+/* NetCalendar 2006, 2009 (c) Dipl.-Inform. (FH) Paul C. Buetow
+ * http://netcalendar.buetow.org - netcalendar@dev.buetow.org
+ */
+
package client;
import java.awt.*;
@@ -5,38 +9,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());
+ 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();
}
-
- dispose();
- }
} \ No newline at end of file