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
-1
votes
1 answer

JavaFX application not responding when found ServerSocket.accept() method

I create javafx application and have to combine it with ServerSocket, but when I use function accept of ServerSocket the application is black out. what I expected is to let the application wait until there a Socket connect and run the next method. I…
-1
votes
1 answer

How to draw shapes in JavaFX when scale of group containing Shape is not default

I am learning about creating shapes when mouse is dragged in JavaFX and I can create the shapes when mouse is dragged but a problem shows up when I change the scaleX and scaleY of the Group containing that shape. The problem is that when I try to…
user10485339
-2
votes
0 answers

I can't launch my JavaFx application I have java.Lang.reflect.InvocationTargetException I think it's a problem related to my FXML file

Parent root= FXMLLoader.load(getClass().getResource("sample.fxml")); l’erreur vient d’ici Parent root= FXMLLoader.load(getClass().getResource("../sample.fxml")); et Parent root= FXMLLoader.load(getClass().getResource("./sample.fxml")); Mais ca…
-2
votes
1 answer

How to change font size of navigation drawer items title in gluon mobile javafx with css?

I am developing a simple mobile application with gluon mobile javafx, unfortunately I have came accross to a problem of styling navigation drawer items' title with css. If anyone knows how to do that, he or she may help me. Thanks.
-2
votes
1 answer

JavaFX - java.lang.nullpointer on one machine but not another

I have created a JavaFX Java program that displays few screens. on one machine it works when I run from eclipse but fails when I run it as a jar. on another machine it fails in eclipse with the same error I get previously. I have linked a screenshot…
Murigrim
  • 9
  • 1
-2
votes
1 answer

Scale Polygons in javafx to their parent

Suppose you have a polygon in a container and you want to scale it to the container when you create that container. You create width and height for that container and you have a defined polygon already, housed in it. Now you want that polygon to…
trashtatur
  • 381
  • 1
  • 3
  • 12
-2
votes
1 answer

How can I fix this JavaFX problem in the 11 Java JDK version?

I currently have a weird problem in " Intellij IDEA Edition 2018.3.1 " and when I run my JavaFX program I always get thrown out an error. Just because I added a few lines of code. The error: "C:\Program Files\Java\jdk-11.0.1\bin\java.exe"…
-3
votes
1 answer

JavaFX 11 International Language Support -- All languages?

I am trying to develop a JavaFX 11 application where I need to display Amharic/Geez/Ethiopic alphabets. I've tried all the suggestions on StackOverflow (like this one), but all characters are displayed as a bunch of empty rectangles on the…
YheCoder
  • 61
  • 1
  • 7
1 2 3
22
23