It does this as well with
/usr/lib/jvm/java-8-oracle/bin/java
and
/usr/lib/jvm/java-6-openjdk-amd64/bin/java
Any suggestions?
--- openmicroscopy-5.2.0/components/insight/SRC/org/openmicroscopy/shoola/env/ui/UIFactory.java 2015-11-02 11:36:18.000000000 +0100
+++ openmicroscopy-axel/components/insight/SRC/org/openmicroscopy/shoola/env/ui/UIFactory.java 2015-12-11 15:24:36.363361076 +0100
@@ -47,16 +47,33 @@
public class UIFactory
{
-
+ static public SplashScreenProxy ssp;
+
/**
* Creates the splash screen that is used at initialization.
*
* @param c Reference to the singleton {@link Container}.
* @return The splash screen.
*/
- public static SplashScreen makeSplashScreen(Container c)
+ public static SplashScreen makeSplashScreen(final Container c)
{
- return new SplashScreenProxy(c);
+ Runnable worker;
+
+ try {
+ worker =
+ new Runnable()
+ {
+ @Override
+ public void run() {
+ ssp = new SplashScreenProxy(c);
+ }
+ };
+
+ javax.swing.SwingUtilities.invokeAndWait( worker );
+ }
+ catch (Exception e) { e.printStackTrace(); }
+
+ return ssp;
}
--- openmicroscopy-5.2.0/components/insight/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenManager.java 2015-11-02 11:36:18.000000000 +0100
+++ openmicroscopy-mod/components/insight/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenManager.java 2015-12-13 13:08:26.235858018 +0100
@@ -271,6 +271,8 @@
{
//close() has already been called.
view.setVisible(true);
+ view.removeNotify();
+ view.addNotify();
view.setStatusVisible(true, false);
isOpen = true;
container.getRegistry().bind(LookupNames.LOGIN_SPLASHSCREEN,
package jex;
import java.awt.FlowLayout;
import javax.swing.*;
public class Jex {
public static void main( final String s[] )
{
if( s.length == 0 || ( !s[ 0 ].equals( "true" ) && !s[ 0 ].equals( "false" ) ) )
{
System.out.println( "Argument must be true/false for setUndecorated" );
return;
}
javax.swing.SwingUtilities.invokeLater(
new Runnable()
{
public void run() {
JFrame frame = new JFrame("JEX");
frame.setUndecorated( s[ 0 ].equals( "true" ) );
JPanel panel = new JPanel();
panel.setLayout(new FlowLayout());
JLabel label = new JLabel("This is a label!");
JButton button = new JButton();
button.setText("Press me");
panel.add(label);
panel.add(button);
frame.add(panel);
frame.setSize(300, 300);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
);
}
}
Return to Installation and Deployment
Users browsing this forum: No registered users and 1 guest