summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-14 09:28:48 +0000
committerwbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-14 09:28:48 +0000
commit2ff289b52c53a5893072f3aa3820fba29992e8f5 (patch)
treeee816fcdec9fd3f5b60954dd97965aa531d4c64d
parente19102048016591ba161453b43a3a47f3d4f180c (diff)
downloadmocca-2ff289b52c53a5893072f3aa3820fba29992e8f5.tar.gz
mocca-2ff289b52c53a5893072f3aa3820fba29992e8f5.tar.bz2
mocca-2ff289b52c53a5893072f3aa3820fba29992e8f5.zip
added a splash screen
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@113 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
-rw-r--r--BKULocalApp/pom.xml59
-rw-r--r--BKULocalApp/src/main/java/at/gv/egiz/bku/local/app/BKULauncher.java11
2 files changed, 43 insertions, 27 deletions
diff --git a/BKULocalApp/pom.xml b/BKULocalApp/pom.xml
index 594f5af2..f05aeba0 100644
--- a/BKULocalApp/pom.xml
+++ b/BKULocalApp/pom.xml
@@ -28,35 +28,40 @@
</plugins>
</pluginManagement>
<plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- <mainClass>at.gv.egiz.bku.local.app.BKULauncher</mainClass>
- </manifest>
- </archive>
- </configuration>
- </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <mainClass>at.gv.egiz.bku.local.app.BKULauncher</mainClass>
+ </manifest>
+ <manifestEntries>
+ <mode>development</mode>
+ <url>${pom.url}</url>
+ <SplashScreen-Image>splash.png</SplashScreen-Image>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}</outputDirectory>
- <overWriteReleases>false</overWriteReleases>
- <overWriteSnapshots>false</overWriteSnapshots>
- <overWriteIfNewer>true</overWriteIfNewer>
- </configuration>
- </execution>
- </executions>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}</outputDirectory>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>false</overWriteSnapshots>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
diff --git a/BKULocalApp/src/main/java/at/gv/egiz/bku/local/app/BKULauncher.java b/BKULocalApp/src/main/java/at/gv/egiz/bku/local/app/BKULauncher.java
index 9a953f9e..54d595fa 100644
--- a/BKULocalApp/src/main/java/at/gv/egiz/bku/local/app/BKULauncher.java
+++ b/BKULocalApp/src/main/java/at/gv/egiz/bku/local/app/BKULauncher.java
@@ -1,5 +1,6 @@
package at.gv.egiz.bku.local.app;
+import java.awt.SplashScreen;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
@@ -32,6 +33,7 @@ public class BKULauncher implements BKUControllerInterface {
private ResourceBundle resourceBundle = null;
private Container server;
+ private SplashScreen splash = SplashScreen.getSplashScreen();
private void startUpServer() throws Exception {
server = new Container();
@@ -57,8 +59,15 @@ public class BKULauncher implements BKUControllerInterface {
"Greetings.Message");
}
+ private void initStart() {
+
+ }
+
private void initFinished() {
try {
+ if (splash != null) {
+ splash.close();
+ }
server.join();
} catch (InterruptedException e) {
log.info(e);
@@ -174,7 +183,9 @@ public class BKULauncher implements BKUControllerInterface {
public static void main(String[] args) {
try {
+
BKULauncher launcher = new BKULauncher();
+ launcher.initStart();
launcher.checkConfig(args);
launcher.startUpServer();
launcher.initTrayIcon();