Questions tagged [javafx-9]

JavaFX 9 introduces a new API for JavaFX technology. It is part of the JDK9.

The JavaFX APIs define a set of user-interface controls, graphics, media, and web packages for developing rich client applications.

46 questions
3
votes
1 answer

Get all stages on JavaFX scene graph

I have a utility class that reloads CSS. To get all stages on the scene graph I am using com.sun.javafx.stage.StageHelper#getStages() In Java 9 this is no longer accessible without specifying --add-exports during…
DJViking
  • 732
  • 1
  • 9
  • 23
3
votes
0 answers

Creating BSS files from CSS in JavaFX 9

I'm in the progress of upgrading my project to Java 9 due to Eclipse upgrade breaking APT in Java < 9 when working with Dagger 2. I used to generate binary css files (bss) with the following command (which worked perfectly fine until Java 9): $…
Emily L.
  • 5,274
  • 1
  • 32
  • 60
3
votes
2 answers

JavaFX WebView does not render visual content on a Dialog

The following code shows a weird behavior in JDK 9.0.1 (Windows): Dialog Snippet Dialog dialog = new Dialog<>(); WebView webView = new…
LouizFC
  • 115
  • 1
  • 9
3
votes
1 answer

Java 9 gradle cant find javafx module

I am trying to compile a java 9 module library with the GA Jdk 9 on an debian system with gradle 4.2. To do this, i just did this to replace my classpath with modulepath: compileJava { doFirst { options.compilerArgs = [ …
Ben
  • 180
  • 1
  • 12
2
votes
1 answer

JavaFX stage coordinates update on close

I'm experiencing a very odd behaviour, which I suspect to be a bug in the JavaFX 9 API, but I'm cautious as it's more likely that I'm missing something. MCVE: public class MainApp extends Application { private Stage primaryStage; …
parszab
  • 107
  • 6
2
votes
1 answer

How to enable auto import in Eclipse for JavaFX classes?

My current Eclipse is Oxygen.2 Release (4.7.2) and there's Java 9.0.1. Essentially Java 9 works and particularly auto import works (for "ordinary" classes and packages), but auto import (and autocompletion) does not work for javafx.*. If I manually…
Cromax
  • 1,369
  • 1
  • 18
  • 29
2
votes
1 answer

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

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…
Sap
  • 728
  • 5
  • 18
2
votes
1 answer

How can I make my javafx app auto update itself?

I am currently creating a simple javafx application and want to make an "check for updates" button. When this button gets pressed, it checks for any available updates. If it does find one, it prompts the user about that and asks permission to update…
2
votes
0 answers

modena.css resource loading fails on Java 9

getClass().getResource("/com/sun/javafx/scene/control/skin/modena/modena.css") returns null even with the JVM argument --add-opens=javafx.controls/com.sun.javafx.scene.control.skin.modena=ALL-UNNAMED
wzberger
  • 873
  • 6
  • 15
1
vote
1 answer

Passing reference to javafx.application.Application

Consider a non-fx existing application, let's call it Business. Business exposes a Model object, which in turn exposes some properties. Model also accepts listeners to those properties. My question is about adding JavaFx gui to such application.…
c0der
  • 15,550
  • 6
  • 26
  • 53
1
vote
0 answers

JavaFx Chart unrefresh in subscene with Oracle JDK10

I write a JavaFX Demo to add a bar chart in Subscene and change the bar chart series value in KeyFrame in Timeline. In Oracle JDK8, the bar chart graphic refresh correct,But in Oracle JDK 10,the bar chart graphic do not refresh. I tried…
KaLa
  • 21
  • 4
1
vote
1 answer

How openjfx-11 archive used in Intellij IDEA?

I download the archive openjfx-11-ea+13_windows-x64_bin-sdk and OpenJDK. Then I create a JavaFX Application project and write a demo in Intellij IDEA (1.8.3). For Compile the project,in IDEA "Module Setting" ->"Dependencies",I set the "lib"…
KaLa
  • 21
  • 4
1
vote
1 answer

Java cannot find JavaFx classes although present in JDK

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…
Java Noob
  • 319
  • 1
  • 4
  • 13
1
vote
1 answer

JavaFX JDK 9.0.4 ListView celFactory adds null cells

Why does the CellFactory add so many null elements in this list? I explicitly set an observable array with just "a" and "b" I don't think it's a problem with the bindings ... Any suggestions? package at.kingcastle.misc; import…
Philipp König
  • 347
  • 2
  • 9
1
vote
1 answer

Is specifying JavaFX CSS borders on GridPane contents supposed to collapse the sizing?

I was attempting to layout a JavaFX stage using a GridPane when I ran into the following problem. If I setup the grid with the appropriate constraints and add newly instantiated StackPanes to it, the default sizing of the scene, stage, and it's…
anishthecoder
  • 900
  • 6
  • 18