javafx-9

Using CcontrolsFX's SpreadsheetView in Java 9

穿精又带淫゛_ 提交于 2020-01-25 07:22:06
问题 I've got an application written in Java 8 with ControlsFX 8.40.14. I run the app under Java 9 (jdk-9.0.1 to be precise) and I got the following exception when the app tries to display SpreadsheetView component. Exception in thread "JavaFX Application Thread" java.lang.NoSuchMethodError: javafx.scene.control.TableColumn.impl_setReorderable(Z)V at org.controlsfx.control.spreadsheet.SpreadsheetView.getTableColumn(SpreadsheetView.java:2216) at org.controlsfx.control.spreadsheet.SpreadsheetView

How to find the indices of the visible rows in a TableView in JavaFX 9

╄→гoц情女王★ 提交于 2020-01-10 17:01:33
问题 How do I get the indices of the visible rows in a TableView in JavaFX 9? In JavaFX 8, I can do the following: // --- The offending imports in Java 9 // import com.sun.javafx.scene.control.skin.TableViewSkin; // import com.sun.javafx.scene.control.skin.VirtualFlow; /** * This is a total hack. We need it as scrollTo jumps the selected * row to the top of the table. Jarring if the row is already * visible. As a workaround, we only scroll if the row isn't already * visible * * @return A 2 element

How to find the indices of the visible rows in a TableView in JavaFX 9

柔情痞子 提交于 2020-01-10 17:01:14
问题 How do I get the indices of the visible rows in a TableView in JavaFX 9? In JavaFX 8, I can do the following: // --- The offending imports in Java 9 // import com.sun.javafx.scene.control.skin.TableViewSkin; // import com.sun.javafx.scene.control.skin.VirtualFlow; /** * This is a total hack. We need it as scrollTo jumps the selected * row to the top of the table. Jarring if the row is already * visible. As a workaround, we only scroll if the row isn't already * visible * * @return A 2 element

ZipException: zip END header not found in java-9

陌路散爱 提交于 2020-01-03 05:04:07
问题 util.zip.ZipException: zip END header not found exception when try to load javafx fxml view in java-9. Details My Application is a Javafx (uses fxml view ) which is built and compiled using java-8(jdk-8 64-bit) and accessed as a WebStart with jre-9(64-bit). Webpages(xhtml) are loaded and rendered in this javafx application. Also note that There are already two similar bugs reported (ie. JDK-8170276, JDK-8172872) and these two bugs mentioned that the issue is not reproducible with latest java

Java 9 JavaFX Preloader

99封情书 提交于 2019-12-30 03:25:27
问题 In Java 8 I can launch a JavaFX application with a preloader using the following method: LauncherImpl.launchApplication(WindowMain.class, WindowMainPreloader.class, new String[]{...}); I prefer to start it from code, like above, instead of using a deploy configuration, because I don't want the graphical interface to start every time I start the application, but only after some code that has computed that the application should run in GUI mode. I was using the class "com.sun.javafx.application

JavaFX: Weird ClassNotFoundException after updating to Java 9

感情迁移 提交于 2019-12-28 06:49:11
问题 I started a Maven project in Java 8 and wanted to migrate it to Java 9. At the same time I also went from Eclipse Neon EE to Eclipse Oxygen EE. (JFX SDK reinstalled). While the Eclipse Workspace shows no errors; as soon as I try to compile and run the exact same program that used to run perfectly fine in Java 8, I get the following Exception: {...} Caused by: java.lang.ClassNotFoundException: com.sun.javafx.css.converters.PaintConverter at java.base/jdk.internal.loader.BuiltinClassLoader

Java 9 javapacker can't find jfxrt.jar while creating bss'. Seems totally broken in “createbss” mode under Linux. How to avoid the bug?

℡╲_俬逩灬. 提交于 2019-12-21 20:36:24
问题 I have Ubuntu Linux system with Sun JDE 9.0.1 and I need to convert some of Fx's CSS files to binary form from console. But when I execute the command: javapackager -createbss -outdir . -srcdir . I got an error: Error: jfxrt.jar needs to be on classpath for -createbss and for -createJar without -nocss2bin My JDK is properly installed. I have all necessary modules (including FX). Any ideas how I can avoid a stupid bug and I make the packager to do it's job? If I run javapackager from "/usr/lib

JavaFx JFoenix Java9

陌路散爱 提交于 2019-12-13 01:04:36
问题 so I updated my Java from 8 to 9, and I do realize that Jfoenix has separate Jar file for Java 9. However after download the Jar file then trying to import to Scene builder like I did before, nothing shows up, None of the custom controller shows up when I trying to import. Can anyone tell me what is going on ? 回答1: First, make sure you are using Gluon Scene Builder 9.0.1, that can be downloaded from here. Once installed, go to the Jar/FXML Manager option: Select Search repositories : Type

Java 9 javapacker can't find jfxrt.jar while creating bss'. Seems totally broken in “createbss” mode under Linux. How to avoid the bug?

北城余情 提交于 2019-12-04 11:42:19
I have Ubuntu Linux system with Sun JDE 9.0.1 and I need to convert some of Fx's CSS files to binary form from console. But when I execute the command: javapackager -createbss -outdir . -srcdir . I got an error: Error: jfxrt.jar needs to be on classpath for -createbss and for -createJar without -nocss2bin My JDK is properly installed. I have all necessary modules (including FX). Any ideas how I can avoid a stupid bug and I make the packager to do it's job? If I run javapackager from "/usr/lib/jvm/java-9-oracle/jmods" directory it completes without error. So right now I am using an ugly fix,

Java cannot find JavaFx classes although present in JDK

守給你的承諾、 提交于 2019-12-04 02:15:57
问题 I am currently working on an application using javafx for its UI. I am using java 9. When I pulled from github to continue development on my new computer and compiled, there were compilation errors at all references of javafx classes, and only javafx classes. I searched in the jdk in external resources, and the javafx package was indeed where it was supposed to be. I also made a new project using the same jdk and opened a javafx window, which worked fine. This tells me that this is a project