diff options
Diffstat (limited to 'netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/splashscreen/impls/DefaultSplashScreens2012Commons.java | 14 |
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 |