aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-07-17 18:59:39 +0200
committerJiri Vanek <[email protected]>2013-07-17 18:59:39 +0200
commit0fe719f17d81f95491b939f23b5d5c3111f7c427 (patch)
tree25f1bbb19fb3b6f9d7d83c62881bbf5bbb664703 /netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java
parent26dd00c0e206323d17c4b84adeda1cb43084a7a2 (diff)
About dialogue made accessible from plugin
Diffstat (limited to 'netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java')
-rw-r--r--netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java b/netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java
index a22d943..8888217 100644
--- a/netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java
+++ b/netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java
@@ -42,6 +42,7 @@ import java.awt.event.ComponentEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Observable;
+import net.sourceforge.jnlp.about.AboutDialog;
import net.sourceforge.jnlp.splashscreen.impls.defaultsplashscreen2012.BasePainter;
import net.sourceforge.jnlp.splashscreen.parts.BasicComponentSplashScreen;
@@ -63,6 +64,19 @@ public final class DefaultSplashScreens2012Commons {
parent.repaint();
}
});
+ parent.addMouseListener(new MouseAdapter() {
+
+ @Override
+ public void mouseClicked(MouseEvent e) {
+ if (e.getY() < painter.getAboutOfset().y && e.getX() > (painter.getAboutOfset().x)) {
+ try {
+ AboutDialog.display();
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ }
+ }
+ }
+ });
// Add a new listener for resizes
parent.addComponentListener(new ComponentAdapter() {
// Re-adjust variables based on size