Questions tagged [javafx-11]

The JavaFX platform enables developers to create client applications based on JavaSE that behave consistently across multiple platforms. Built on Java technology since JavaFX 2.0, it was part of the default JDK since JDK 1.8, but starting Java 11, JavaFX is offered as a component separate from the core JDK.

The JavaFX platform enables developers to create client applications based on JavaSE that behave consistently across multiple platforms.

Built on Java technology since JavaFX 2.0, it was part of the default JDK since JDK 1.8, but starting Java 11, JavaFX is offered as a component separate from the core JDK.

JavaFX has been moved to OpenJDK under the OpenJFX project, and a mirror of the OpenJFX repository has been created on GitHub. OpenJFX is free software, licensed under the GPL with the class path exception, just as OpenJDK. Anybody is welcome to contribute to this project.

JavaFX 11 GA was released on September 18th, 2018, a week before the release of Java 11. A new OpenJFX community site was launched at the same time at http://openjfx.io/.

Getting Started

Using an early access of Java 11, JavaFX 11 can be added to the project via:

  • Downloading JavaFX 11 for the specific machine, and including the jars and native libraries in the project.

  • Retrieving JavaFX 11, that can be either downloaded from openjfx.io or by accessing any of the javafx modules from maven central from Maven Central, and including them as dependency to Maven or Gradle projects.

For a Maven project:

<dependencies>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-controls</artifactId>
        <version>11</version>
        <classifier>$platform</classifier>
    </dependency>
</dependencies>

And for Gradle:

dependencies {
    compile "org.openjfx:javafx-controls:11:${platform}"
}

See this guide for running a Hello World sample.

For JavaDoc see this link.

339 questions
0
votes
2 answers

How to style multiple ImageViews to not violate DRY in JavaFX11

Is there a way to style multiple ImageViews and similar? For example, I have this code: Image pic1 = new Image(getClass().getResourceAsStream("/pic1.png")); ImageView picView1 = new…
Doerad
  • 69
  • 1
  • 7
0
votes
0 answers

OpenJFX packaging with application

I am trying to work with JavaFX/OpenJFX. I see that it has dependencies with platform classifier, e.g., javafx-graphics, for common platforms (Windows, Linux, etc.). I am looking ahead and I am curious if I can just package all the platform .jar…
wilx
  • 17,697
  • 6
  • 59
  • 114
0
votes
0 answers

How to compile a Maven JAR file with JVM args use a plugin?

I'm looking for a Maven plugin that could execute by itself the good JVM arguments. For now, I've tried using the maven-compiler-plugin and the maven-surefire-plugin (the pom of my project is down below). the type of argument I want the jvm to…
midugh
  • 608
  • 5
  • 21
0
votes
0 answers

JavaFX 11 Unicode characters sequence get inversed

Some of the Unicode characters are inversely rendered in JavaFX 11. Language: Tai Language Font: Pyidaungsu. Click this Link to download Text to render: ၸေႃႇၵျီႇ OS: Windows 10 Program code guide: Getting started with JavaFx 11 Program…
M. Ko
  • 563
  • 6
  • 31
0
votes
1 answer

Javafx Handle Button gettext null pointer exception

I am trying to write a function in Javafx that validates the username and password in database. However when I try to get text from text field or password field I get null pointer exception. I don't understand what is wrong in the code, I tried to…
void
  • 23
  • 2
  • 7
0
votes
1 answer

Why is onSuceeded(...) method in JavaFX not called the first time?

I'm trying to load data from the server. The loaded data is then displayed via JavaFX views. I'm using a service to perform networking operations, I'm using Apache HttpClients for this. Initially, I thought the bug was associated with the network.…
0
votes
1 answer

Cannot run Maven shaded jar with JavaFX 11 on Windows

At first I got the missing JavaFX runtime components error, which led me to this thread. After applying the solution in that thread, i.e. create a different Main class that doesn't extend Application, I got a new error message, below is the full…
Gnas
  • 698
  • 1
  • 6
  • 14
0
votes
2 answers

How to launch openjfx 11 app on Intellij Idea?

I am using openjfx 11 with java 11. If I launch the app with mvn, it works fine. I have those dependencies added: org.openjfx javafx-fxml
Thiago Sayão
  • 2,197
  • 3
  • 27
  • 41
0
votes
0 answers

InvocatoinTargetExceptoin when using JavaFx 11 Robot API

JavaFx 11 comes with a Robot API and I was excited to use it. The problem is that just instantiating the Robot results in an InvocationTargetException. Has anyone successfully used the JavaFx 11 Robot, and if so how? Note: I added JavaFx 11 as a…
NeradaXsinZ
  • 137
  • 1
  • 7
-1
votes
1 answer

i can't load ressources within a jar even though i used getRessourcesAsStream

please guys i want to load images from i jar in a javafx app but it don't show up even though it works in ide just as expected this is the output i get from load…
-1
votes
1 answer

How to eliminate the empty space of a dialog/pie chart in JavaFX?

I'm new to JavaFX and encountering this problem. Pie chart/dialog with extra dead space. My code is Dialog dialog = new Dialog(); ObservableList pieChartData = FXCollections.observableArrayList(); pieChartData.addAll(new…
WYW
  • 17
  • 3
-1
votes
1 answer

Including Video - FX11 & Dependencies

I'm trying to include video in a project on a node on auto-replay. I have looked around and found the .Scene.media.Media class but that is not actually built into Java FX11, from what I have found. IntelliJ doesn't let me import it. Is there…
-1
votes
1 answer

Not able to print the entire content of text on thermal printer in JavaFX

I am printing a string of text on an 80mm thermal printer using textArea as the node. But after printing out, the height of the text is getting cut off. Below is the image of the output I am getting: But I am printing this sample text what is…
-1
votes
1 answer

TestFx retrieve elements content of HTML in WebView

I am writing tests in my JavaFX application using TestFx. It is going good till i access FXML elements but i am wonder how to access WebView HTML content. WebView is a major part of my application so i have to add tests for that. Below is my HTML…
Sumeet Vishwas
  • 585
  • 1
  • 6
  • 18
-1
votes
1 answer

Not able to connect connecting javafx components properly

I was trying to connect javafx external components but getting this kind of error " Unrecognised option :--module-pathD:\javafx-sdk-11.0.2\lib--add-modules=javafx.controls" So what to do in order to remove this error ack.imgur.com/RAjYw.jpgstrong…
1 2 3
22
23