diff --git a/src/main/java/org/scenicview/ScenicView.java b/src/main/java/org/scenicview/ScenicView.java index f404c3b..5075991 100644 --- a/src/main/java/org/scenicview/ScenicView.java +++ b/src/main/java/org/scenicview/ScenicView.java @@ -79,13 +79,15 @@ public static void show(final Scene target) { } public static void show(final Parent target) { + show(target, new Stage()); + } + + public static void show(final Parent target, Stage stage) { if (target == null) { return; } startup(); - - final Stage stage = new Stage(); // workaround for RT-10714 stage.setWidth(1024); diff --git a/src/main/java/org/scenicview/view/ScenicViewGui.java b/src/main/java/org/scenicview/view/ScenicViewGui.java index d07b694..98fe7f2 100644 --- a/src/main/java/org/scenicview/view/ScenicViewGui.java +++ b/src/main/java/org/scenicview/view/ScenicViewGui.java @@ -285,7 +285,10 @@ private void buildUI() { tabPane = new TabPane(); tabPane.getSelectionModel().selectedItemProperty().addListener((ov, oldValue, newValue) -> updateMenuBar(oldValue, newValue)); - javadocTab = new JavaDocTab(this); + boolean isJPro = Boolean.getBoolean("jpro.isbrowser"); + if(!isJPro) { + javadocTab = new JavaDocTab(this); + } eventsTab = new EventLogTab(this); eventsTab.activeProperty().addListener((ov, oldValue, newValue) -> { @@ -298,8 +301,12 @@ private void buildUI() { // CSSFX cssfxTab = new CSSFXTab(this); - - tabPane.getTabs().addAll(detailsTab, eventsTab, /*animationsTab,*/ javadocTab, threeDOMTab, cssfxTab); + + if(isJPro) { + tabPane.getTabs().addAll(detailsTab, eventsTab, /*animationsTab,*/ /*javadocTab,*/ threeDOMTab, cssfxTab); + } else { + tabPane.getTabs().addAll(detailsTab, eventsTab, /*animationsTab,*/ javadocTab, threeDOMTab, cssfxTab); + } // /3Dom Persistence.loadProperty("splitPaneDividerPosition", splitPane, 0.3);