changeset 3797:a5b41e87883e

Made simple 3d viewer use a transparent window
author "Jasper Potts"
date Mon, 03 Jun 2013 14:16:48 -0700
parents e591db661d96
children 5be62ada9a91
files apps/experiments/3DViewer/src/main/java/com/javafx/experiments/jfx3dviewer/SimpleViewerApp.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/apps/experiments/3DViewer/src/main/java/com/javafx/experiments/jfx3dviewer/SimpleViewerApp.java	Mon Jun 03 14:16:03 2013 -0700
+++ b/apps/experiments/3DViewer/src/main/java/com/javafx/experiments/jfx3dviewer/SimpleViewerApp.java	Mon Jun 03 14:16:48 2013 -0700
@@ -48,6 +48,7 @@
 import javafx.scene.transform.Rotate;
 import javafx.scene.transform.Translate;
 import javafx.stage.Stage;
+import javafx.stage.StageStyle;
 import javafx.util.Duration;
 import com.javafx.experiments.importers.Importer3D;
 import com.sun.javafx.perf.PerformanceTracker;
@@ -68,7 +69,8 @@
     @Override public void start(Stage stage) throws Exception {
         List<String> args = getParameters().getRaw();
         final Scene scene = new Scene(root3D,1920,1080,true,false);
-        scene.setFill(Color.ALICEBLUE);
+        scene.setFill(Color.TRANSPARENT);
+        stage.initStyle(StageStyle.TRANSPARENT);
 
         // CAMERA
         camera.getTransforms().addAll(