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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
11 views

How to resolve the error when print jasper report using JRViewerFX in javafx application [duplicate]

I have got error when print report. The error is : Exception in thread "JavaFX Application Thread" java.lang.IllegalAccessError: superclass access check failed: class win.zqxu.jrviewer....
L Panthi Maniv's user avatar
-1 votes
1 answer
49 views

I can't load resources within a JAR even though I used getResourceAsStream

I want to load images from a JAR in a JavaFX app, but they don't show up even though it works in my IDE as expected. This is the output I get from load function file:/C:/Users/anass/OneDrive/Desktop/...
anass dabgahi's user avatar
1 vote
0 answers
27 views

How to add dynamic row value from button to tableview in javafx

I am working on a POS system using Javafx , and I'm trying to set value to a tableview after clicking a button which was generated by MySQL data to. But any time I click the button let say coffee it'...
Dochi Rose's user avatar
3 votes
2 answers
60 views

How to access the stage in another class?

I use FXMLLOADER to load a fxml file SignInUI.fxml in LogUIController. The code is here: Stage signIn = new Stage(); FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("...
Cao Dingjie's user avatar
0 votes
0 answers
36 views

JavaFX The items in the listview are not fully displayed, when the item type is textflow

I use listview to display some textflow nodes, but when the length of the text in the textflow node is much longer than the length of the listview, these nodes cannot be fully displayed. the jdk ...
laoboli's user avatar
0 votes
0 answers
25 views

JavaFX problem only reads variable initial value and never the new one?

I'm working on this javaFX application that creates an object "StructureNode" and update it's data as you update the screen UI inputs and then I assign this object to "TrussMember" ...
Mohammed Yasser's user avatar
0 votes
0 answers
29 views

How to set visibility of a view in a tab when another tab is active

I have a TabPane which includes 3 different tabs. I load all the views in the tabs with injection. My question is that how to set visibility of a view in one tab when another tab is active. Please ...
şahin's user avatar
  • 17
0 votes
1 answer
49 views

How to update a value in another thread from FX application thread?

I'm developing a simple TCP server application and my server code is in a thread called serverThread. I have a variable named response and it's initial value is an empty string but when the user ...
Amin soley's user avatar
0 votes
0 answers
50 views

JavaFX Application Thread" javax.persistence.PersistenceException: No Persistence provider for EntityManager named

this is my pom.xml file <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/...
Steven Ashraf's user avatar
0 votes
1 answer
77 views

Separate css file for JavaFX project

How can I apply a certain style for all lines objects in a separate css file for a javaFX project? This is the java code : package com.example.demo; import javafx.application.Application; import ...
Mazen Saeed's user avatar
1 vote
1 answer
97 views

How to set a transparent png as a stage's background in javafx?

I am trying to set a transparent png as a stage's background. The problem is that the transparent part of the png is not not transparent in javafx. This is the code I am using: Pane root = new ...
adragomir's user avatar
  • 457
0 votes
1 answer
38 views

javafx binding multiple properties for a single purpose

I have multiple data sets and am trying to write a javafx program to graph selected data using a MVVM architecture. There are three key properties I have bound between my view and view model : start, ...
mgillett's user avatar
0 votes
0 answers
42 views

Menu Font in Javafx

I have been trying to change the font of the menu, but no luck. I do not want the background to be white, but the font. This is my code: Can someone please help me? // Add the menu items to the menu ...
Mysterio's user avatar
0 votes
1 answer
201 views

Problem while running Java FX + Spring booot application with JDK 11+

I've been trying to upgrade an existing JavaFX application written in Java 8 to Java 17. I'm still new to the Java Modular system. Exceptions thrown 2023-02-23 16:48:59.487 INFO 1536 --- [JavaFX-...
Conrad Bekondo's user avatar
1 vote
0 answers
1k views

How to fix "Unable to create javax script engine for javascript" in netbeans?

Im trying to do a project using Javafx and Netbeans IDE and I can not run my project because this message below "Unable to create javax script engine for javascript". Please can someone tell ...
James James's user avatar
0 votes
0 answers
77 views

JavaFX MediaPlayer not always playing MP4 file

I have a very simple JavaFX video player which in some runs just doesn't play the MP4 file it should be playing. Here's the source code (I omitted the imports for convenience): public class App ...
michaelNXT's user avatar
1 vote
1 answer
72 views

Javafx How to select filtered value from Tableview on button click

i am new to Java FX and trying to implement a table view with filter using a textfield. i have a textfield and search button along with it. my requirement is i will enter a search value in textfield ...
Akhil's user avatar
  • 101
0 votes
0 answers
26 views

JavaFX is not reading imports that are necessary

I am learning javafx and am currently working on how to use two stages. I followed this tutorial (https://www.youtube.com/watch?v=cS6JsmECDcU) but when I made my new fxml file, it shows that the java ...
Stefani Ann Gutierrez's user avatar
0 votes
0 answers
27 views

JavaFX ScrollPane's ViewportBounds does not change when stage change maximize property

I have a problem with my ScrollPane's viewport bounds. This is the code I used to check for pane's width, and viewport as well: ScrollPane.widthProperty().addListener((observableValue, oldValue, ...
VMaties's user avatar
0 votes
0 answers
21 views

IntelliJ with JavaFx: can't cnahge controller's folder [duplicate]

I'm working on Java project with JavaFX using IntelliJ. My idea is separate .java file in differents folders for model-view-controller arq. To get in context, this is my project structure: And each ...
Gino's user avatar
  • 31
0 votes
0 answers
25 views

JavaFX Application GUI freezed with ResultQuery Database Operation

I am new to JavaFX but I did quite the research here and despite all the things I tried, I still have the same Issue. Its a classic GUI problem being blocked/freezed when I execute a specific action (...
Klauser's user avatar
0 votes
0 answers
44 views

Using JavaFX 17 while using Java 11 [duplicate]

Is it possible to use JavaFX 17 with Java 11? I want to keep using Java 11 because I use it a lot and I don't want to switch over to Java 17. But can I run JavaFX 17 while using Java 11? I have tried ...
Thijzert's user avatar
1 vote
0 answers
203 views

Converting JavaFX application(.Jar) to Windows application(.exe) - Launch4j (JDK 11)

I am trying to convert with Launch4j, but I have the following error: Error: JavaFX runtime components are missing, and are required to run this application This is how I have the configuration: At ...
Edisson Gabriel López's user avatar
-2 votes
1 answer
81 views

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, ...
Joseph Sekwa's user avatar
2 votes
2 answers
170 views

MediaView is not returning different snapshots

I am able to get snapshots of video when played using the following; mediaView.snapshot(null, null); Now I want to take snapshots with certain duration gaps like the following: public class Main ...
sunnyboy's user avatar
0 votes
0 answers
62 views

How to bind BorderPane's center node's dimensions to an ImageView

I have a JavaFX BorderPane in which I add an ImageView as the center node of the BorderPane. The ImageView becomes very big, and overlapsed other nodes. I want to set the dimensions of the ImageView ...
kanka.dev's user avatar
5 votes
1 answer
749 views

How to debug JavaFX webview in 2022

How to debug a JavaFX webview? I find two ways, one is to attach external chrome debugger to JavaFX webview. Another is to inject firebug javascript. Method#1 seems to use a bit of hacks like set ...
Ivan Velikanov's user avatar
2 votes
1 answer
208 views

JavaFX access internal webkit document

I am trying to access javafx.web/com.sun.webkit.dom from my unnamed module javafx project. For this, I have created a class com.sun.webkit.dom.DomMapper. I do not see any error in the IDE, but when I ...
Ivan Velikanov's user avatar
-1 votes
1 answer
31 views

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<PieChart.Data> pieChartData = FXCollections....
WYW's user avatar
  • 17
1 vote
0 answers
45 views

javafx unresolved location of an imageView

so I am working with scene builder and I added an imageView to the anchor pane , and I used a picture inside it , but it keeps showing this yellow alert , I don't know if it is an error or not , will ...
Oukkal Yacine's user avatar
0 votes
0 answers
1k views

how to validate email in javafx TextField?

GOAL: I'm trying to validate the user's email address as he/she types. I'm just using simple regex because I don't want to use any external library. Also if use the regex like in here regex email for ...
lelouch's user avatar
  • 35
0 votes
1 answer
499 views

Javafx: How to populate a TableView with a map?

I'm having trouble trying to populate a TableView with a map<String, Double>. I've been looking at different kind of questions on stack overflow and other pages as well, but my brain doesn't ...
Jeep's user avatar
  • 3
4 votes
1 answer
943 views

Apache MINA sshd | When I added the dependency and import it in the class I get "the type org.apache.sshd.client.SshClient is not accessible" error

I use Java 11 with JavaFX. When I added Apache MINA as a Maven dependency and then perform an import statement in the java class I get the following error message: "The type org.apache.sshd....
sm-a's user avatar
  • 65
0 votes
1 answer
89 views

duplicate children added error for a class that implements hashCode()

I have a Point class that extends Circle. I'm doing this to add the equals and hashCode methods so that I can add the instances to a Set without duplicates in the set. The problem I'm having is that ...
Sruly's user avatar
  • 169
1 vote
1 answer
441 views

JavaFX TableView with multiple objects

I am trying to fill a TableView with multiple data objects, a ContentItem object with a title attribute and a Progress object with a precentage attribute. This isn't working out, I understand that I ...
S. Bos's user avatar
  • 11
0 votes
0 answers
666 views

How to read excel file into a JavaFX table view?

I already design my Application in SceneBuilder. I have a button to click on it to choose the excel file to import, also a table view that will be populate from the data inside the excel file. I get ...
mana's user avatar
  • 1,091
4 votes
2 answers
4k views

Error initializing QuantumRenderer: no suitable pipeline found in Eclipse JavaFX

Showing "Error initializing QuantumRenderer: no suitable pipeline found" after running JavaFX application. I added required JavaFX jar files to the project and I don't know why this error ...
Aneesh Edavalath S's user avatar
8 votes
1 answer
236 views

Fastest way to clear group with a lot of shapes / multithreading

In my JavaFX project I'm using a lot of shapes(for example 1 000 000) to represent geographic data (such as plot outlines, streets, etc.). They are stored in a group and sometimes I have to clear them ...
Enrico's user avatar
  • 415
1 vote
1 answer
368 views

How to control SQLite 3 database files directory after installing my app (Packaged using JPackage)

I'm using SQLite 3 as a database in my JavaFX app, and in goal to package everything in one file (so that the user won't need to do anything other than launch the .msi file to install it), I put ...
Youssef Idraiss's user avatar
2 votes
1 answer
1k views

JavaFX Gradle Jlink-Plugin: jpackageImage fails because of "[1.0-SNAPSHOT] contains invalid component [0-SNAPSHOT]"

I try to package my app using JPackage task of Jlink-badass plugin (I'm using Gradle as a builder tool), but I keep getting the following error during the JPackageImage phase (even with a simple hello ...
Youssef Idraiss's user avatar
0 votes
0 answers
489 views

How to add one shape at a time based on user interaction-using JavaFx

I want to be able to display just one shape at a time based on user input of a number between 4 and 9. That is my button on click should display a shape with n sides based on n (number entered by user)...
PlumChy's user avatar
  • 39
-2 votes
1 answer
64 views

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

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 ...
Murigrim's user avatar
4 votes
1 answer
2k views

Can I make an installable 32-bit version of my app using jpackage (Java 17)

I've made an application using Java 17 with JavaFX 16 library. Is there a way to make an installable 32-bit version using JPackage of it? Since Java comes always just in 64-bit since Java 9 (same with ...
Youssef Idraiss's user avatar
0 votes
0 answers
220 views

JxBrowser Java, Gradle issue

When loading my jxBrowser app built in java, using javafx, and using Gradle. I get this error: Exception in thread "JavaFX Application Thread" java.lang.IllegalAccessError: class com.teamdev....
Derek's user avatar
  • 196
1 vote
0 answers
280 views

Is there any way I can get to the network traffic being done by the JavaFX WebView control?

Is there any way I can get to the network traffic (requests and responses) being done by the JavaFX WebView control? From what I gather this is pretty much all native webkit, not even URLConnection is ...
tbeernot's user avatar
  • 2,473
1 vote
1 answer
289 views

How do I add and store my custom color to a square in JavaFX when a button is clicked?

When I click on "change color" button, it should add the custom color(made using RGB sliders),to the first square(left one), then after I choose a second custom color and click on "...
old-boysenberry's user avatar
0 votes
2 answers
1k views

I have no clue what I'm doing trying to export JavaFx as a Jar/Exe

I'm trying my hardest to export my javafx(11) projects, but nothing seems to work. I am on IntelliJ IDE, and for example let's use this project: https://github.com/EveningSt3r/JFX-hotel-project. (I ...
EveningSt3r's user avatar
1 vote
1 answer
837 views

Missing SwingInterOpUtils when running JavaFx in an Swing application build with Maven

I have an Swing application and I want to integrate JavaFx to it. The application runs well when starting from Eclipse. Here is the main class: package org.openjfx.hellofx; import java.awt....
Woo's user avatar
  • 41
1 vote
4 answers
7k views

How to use Jpackage to make a distribution format for JavaFX applications

since .jar is not anymore the best format to use to distribute our JavaFX project, I'm willing to use the tool JPackage for that instead, but after reading this post : https://stackoverflow.com/a/...
Youssef Idraiss's user avatar
1 vote
2 answers
297 views

Export a JavaFX project in eclipse to a runable jar

I need to send a project made by JavaFX SDK 16 and Java SE-15 using Eclipse to my friends, but when I try to export it, i'm getting surprised that Eclipse doesn't insert the VM arguments to the ...
Youssef Idraiss's user avatar

1
2 3 4 5
7