Hi,
i tried to run the actual SquirrelFX dev wondering if i can't help a bit for further development of Squirrel.
Alltough, it was a quiet hard stuff to get it running on osx (IntelliJ Community).
Mainly the JavaFX SplashScreen implementation on osx seemed to be buggy. I filed an JDK Bug (http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8166942), regarding the most critical error i think. Seemed, that FX Apps with frequent SplashScreen Update calls hangs up the App on osx.
Also the progress bar (displayed on the Splashscreen) is not shown.
import javafx.application.Application;
import javafx.stage.Stage;
import java.awt.*;
public class SplashTest extends Application{
public static void main(String[] args) {
launch(args);
}
public void checkSplashUpdate() {
SplashScreen splashScreen= java.awt.SplashScreen.getSplashScreen();
splashScreen.createGraphics();
splashScreen.update();
splashScreen.close();
// calling splashScreen.update() instead of close() a second time also
// kills the app, because internally it also calls SplashLock
}
@Override
public void start(Stage primaryStage) throws Exception {
checkSplashUpdate();
}
}
Seemed to be the native part of java (namely the osx part) is buggy.
bye Jürgen
I forget to mention, the java code is the testcase for the brocken FX IMplementation on osx.
@Gerd:
current workaround is to comment out th single line
or perhaps detectinc once
and in
This will supress any progressbar updates on SplashScreen on osx, but at least the app is running.
SQuirreL now uses a different splash screen mechnism now.
Hi Gerd,
i didn't noticed any commit concerning the splashscreen thing? Still in queue?
I thought about an alternative for placing spalshscreen, using a preloader (http://docs.oracle.com/javafx/2/deployment/preloaders.htm) sounds interisting.
How about that?
bye jürgen
Hi Jürgen
right, I forgot to push my changes last night. It's done now.
Gerd
I've tested it on OSX 10.6 and it works. New splashscreen and progressbar ist visible, after showing the splashscreen app window is shown.
bye jürgen