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
8
votes
3 answers

Java 9 JavaFX Preloader

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…
8
votes
6 answers

JavaFX does not exist using Java 9 and Intellij Idea

I am using Intellij Idea to compile a project that uses Maven dependencies and Intellij keeps telling me that my project has 50 something errors because JavaFX does not exist. Intellij is not highlighting all the javafx dependencies in my code as…
user3785637
  • 109
  • 1
  • 1
  • 6
7
votes
1 answer

How to set several default CSS stylesheet for an application with JavaFX 9 (a replace for StyleManager)?

Whose damn idea it was to exclude StyleManager without direct and clear replacement - it broke many programs as I see! I need to make some restyling for the whole application (custom components, custom pseudo classes, custom platform-specific…
Sap
  • 728
  • 5
  • 18
7
votes
1 answer

Module javafx.controls not found in Java 9

I have two JPMS module in two files: modulea.jar and moduleb.jar. Modulea requires javafx.controls module. I need to use these modules in new layer, so I do: ModuleFinder finder = ModuleFinder.of(modAPath, modBPath); ModuleLayer parent =…
Pavel_K
  • 8,216
  • 6
  • 44
  • 127
6
votes
2 answers

How to wait for user input on JavaFX application thread without using showAndWait?

I'd like to pause the execution of a method on the JavaFX application thread and wait until the user does interaction with the UI. It's important not to freeze the UI. Example: Button start = ... Button resume = ... start.setOnAction(evt -> { …
fabian
  • 67,623
  • 12
  • 74
  • 102
5
votes
0 answers

ListView.getSelectionModel().selectIndices OOB bug?

I have a ListView and want to select multiple indices programmatically inside Platform.runLater() Problem: If the indices I want to select are sequential (e.g. {5,6,7}) the selection works fine. If there is a gap (e.g. {5,7,8}), an OOB exception is…
4
votes
1 answer

Java9 bug in javafx PieChart labels

import javafx.application.Application; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.chart.PieChart; import javafx.scene.control.Button; import javafx.scene.layout.BorderPane; import javafx.scene.layout.VBox; …
dnjsdnwja
  • 337
  • 4
  • 13
4
votes
2 answers

com.sun.javafx.collections in Java 9

I need to recompile java applicattion, written on Java 8. App use com.sun.javafx.collections.ObservableListWrapper class, but when compiling for java 9 error occurs: Error:(3, 22) java: package com.sun.javafx.collections is not visible (package…
Alex T
  • 1,647
  • 4
  • 17
  • 25
4
votes
0 answers

Compiling JavaFX application on Ubuntu with OpenJDK 9

I tried to compile the JavaFX HelloWorld demo form Oracle on Ubuntu 16.04.3 LTS with OpenJDK 9, but it did not work: $ javac -version javac 9-internal $ javac HelloWorld.java HelloWorld.java:3: error: package javafx.application does not exist ... I…
user11171
  • 3,271
  • 4
  • 23
  • 32
4
votes
1 answer

JavaFX: Weird ClassNotFoundException after updating to Java 9

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…
PMC
  • 61
  • 2
  • 4
4
votes
1 answer

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

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…
hohonuuli
  • 1,846
  • 15
  • 14
4
votes
2 answers

How to add to JavaFX Scene stylesheet from another module in Java 9?

I have two JPMS modules: module-a module-b In module-a I have something like: public class MyAppplication extends Application { .... public static void addCss(String path) { stage.getScene().getStylesheets().add(path); } } In…
Pavel_K
  • 8,216
  • 6
  • 44
  • 127
3
votes
1 answer

Rectangle with rounded corner as ProgressBar using Path

i need to draw rectangle rounded corner with progressbar in javafx. i already did some code which draw rectangle with corner. but how do i show progress effect. Following are the example which I am trying to…
mcd
  • 1,405
  • 15
  • 29
3
votes
1 answer

How to get Javafx 9 in Eclipse?

I created a Java 9 project in Eclipse, generated a module-info.java and added some test-dependencies, everything works. But if I add requires javafx.base, it says "javafx.base cannot be resolved to a module". JavaFX does not show up in the class…
piegames
  • 673
  • 10
  • 26
3
votes
1 answer

JavaFX ComboBox becomes unclickable after removal and re-adding

I think I perhaps have found a bug in Java, or maybe I am doing something wrong. I populate a container based on some received data. The container has one or more ComboBoxes. On ComboBox selection change I receive new data. I then clear the GridPane…
DJViking
  • 732
  • 1
  • 9
  • 23
1
2 3 4