Questions tagged [javafx]

The JavaFX platform enables developers to create and deploy Graphical User Interface (GUI) applications that behave consistently across multiple platforms. JavaFX 1.3 and older, were scripting languages, whereas JavaFX 2.x+/8.x enables users to use Java. FXML enables JavaFX to follow an MVC architecture.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

I can't seem to get PDFbox-3.0.0.jar in my classpath library to import to my main.java

My issue is that I get an error importing two commands as you see below. I've tried creating it as a new library in module path and then only adding it as external jars. still does not see pdfbox jar ...
League Follower's user avatar
0 votes
0 answers
34 views

Why doesn't the location of 3D objects change when you click on the button?

I am a student and I am studying physical modeling of processes. I'm new to GUI. I have two processes. The first process randomly scatters the balls onto the surface of the cylinder. Here's the code ...
Darina's user avatar
  • 1
1 vote
0 answers
29 views

How to load watermark over the jxbrowser [closed]

I have one parent browser and the content on the parent browser . On which one more child browser is opened with some content but on the child browser which is created using jx browser , there over ...
Ajay Kumar's user avatar
-6 votes
0 answers
50 views

Why are the "pom.xml" files of a project managed with maven usually misconfigured? [closed]

I am developing a javafx application or so I try, before I did it in eclipse but I changed to vscode, to create a javafx project here it is automatically handled with maven or that's what happened to ...
Crynda's user avatar
  • 1
0 votes
0 answers
55 views

Missing graphics in TreeCells / TreeItems of JavaFX TreeView

We have developed a JavaFX application and got some strange behaviour with TreeView and TreeCells: The graphics of the tree elements are sometimes gone and we do not know the reason. I created a small ...
Thorsten's user avatar
  • 315
0 votes
0 answers
40 views

Cannot configure javafx in vscode

I've been trying to make javafx work with vscode for a while, even though i follow the official javafx guide: https://openjfx.io/openjfx-docs/#install-java (vscode instructions on the left). I use ...
Talete's user avatar
  • 81
0 votes
0 answers
28 views

how can I build the jar file of my JavaFX application using gradle?

I'm trying to build a javafx application using gradle but I'm having problems. Gradle creates the jar file, but when I try to run it I get an error: C:\Users\user1\IdeaProjects\JavaFXTest\build\libs&...
Mike Sullivan's user avatar
0 votes
1 answer
40 views

javafx force image to be loaded

I'm trying to write a method to do something with the pixels in a javafx.scene.image.Image void process(Image image) { PixelReader reader = image.getPixelReader(); if (reader != null) { ... } } ...
Peter Hull's user avatar
  • 6,693
-2 votes
0 answers
33 views

Conform size of canvas to parent element? [duplicate]

I see that most JavaFX elements have the option to choose COMPUTED_SIZE for their Size property under the Layout section. However, I see that the Canvas element does not have that option, only ...
Runsva's user avatar
  • 393
0 votes
1 answer
50 views

How to resolve commons.math3 not found error in JavaFx project?

I am trying to make a javafx program that reads the data from the excel file. I have added the poi dependency in my project. here is my build.gradle file code. plugins { id 'java' id 'application' ...
AdnanArch's user avatar
  • 104
0 votes
1 answer
28 views

Intellij: Runtime components are missing in JavaFX project [duplicate]

I'm trying, on a windows machine, to create a .jar file from a project that I created. I can create the .jar file throght jlink and the use of a custom jar {} to compact all the jars in one .jar file. ...
dcfrenci's user avatar
1 vote
1 answer
50 views

Cannot start program created with jpackage

Hello everyone I am new using jpackage and I am building a java aplicaction with JavaFx framework and I added a Websocket server (using org.eclipse.jetty.websocket and org.eclipse.jetty dependencies) ...
hanarce's user avatar
  • 33
0 votes
0 answers
20 views

javafx.scene.control.ComboBox closes its listbox when touch and scroll list

Follow this steps on IOS or ANDROID: 1 - touch on combobox to open its listbox with many itens on list 2 - when try scroll list, its listbox closes before open de combobox when ty to scroll list the ...
Tadeu Gois's user avatar
-1 votes
0 answers
49 views

IDE does not index some classes, but run without problem [closed]

My IDE does not index some classes. It highlights methods and variables in red, as if the class does not have access to them, however, the code compiles, runs and works without problems, I can't ...
Solntsev Maksim's user avatar
0 votes
0 answers
23 views

Maven and JavaFX on Raspberry Pi: Loading library glass from resource failed: java.lang.UnsatisfiedLinkError

I have a JavaFX app that works fine on desktop. I'm trying to "port" it to Raspberry Pi. I use the following command to run it: mvn -s "/full_path/maven.xml" -Djavafx.platform=...
Peter's user avatar
  • 326
0 votes
0 answers
46 views

Creating a form for registrating three users in JavaFX

Context Developing a Login/Registration page Security is very important To reduce code complexity, I want to use just one controller and FXML page. I want to create a form to register three users at ...
Billie's user avatar
  • 23
0 votes
0 answers
35 views

Variable remains null after I use setter in JavaFx [duplicate]

I am trying to make a banking system in Java using JavaFX. What I want to do is to set the text of a label to the String value of a variable when switching scene. I have a set method in the second ...
MsLaus's user avatar
  • 21
0 votes
0 answers
28 views

Generated JAR file - JNI error has occurred intellij [duplicate]

I've created a maze for a project i've to do to pass an exam, when i try to generate a jar file and i try to run i've got this problem: JNI error has occurred. Someone can help me? i don't know what ...
Antonella Sannino's user avatar
0 votes
0 answers
32 views

How to include other exe files when packaging JavaFX into an exe?

Currently, in Intellij, it is possible to package JavaFX into an installation file through artifacts. How can other installation files be included in the packaging process (such as the MSSQL ...
user1317113's user avatar
-1 votes
1 answer
65 views

JavaFX Task not updating ProgressBar

My software has a button that has a heavy onAction ActionEvent. i'm trying to update a progressBar inside this ActionEvent with a custom Task. But the progress bar are only updating after the ...
Salu Ramos's user avatar
0 votes
0 answers
53 views

Fatal error: java.lang.IllegalAccessError: superinterface check failed: class org.graalvm.compiler.hotspot.CompilationWatchDog_OptionDescriptors

I'm having the following error trying to build a JavaFX + Gluonfx + Micronaut + maven app with the following versions: Java -> 11 graalvm version -> 22.3.3 Micronaut -> 3.4.2 gluonfx maven ...
Ikaro's user avatar
  • 165
0 votes
0 answers
49 views

The BorderPane is placed in the bottom right corner, and I need it to be placed in the center [closed]

The BorderPane is placed in the bottom right corner, and I need it to be placed in the center. Changing HBox to VBox did not help me at all. And I could not find any information on how to center an ...
ill_999's user avatar
1 vote
1 answer
38 views

JavaFx - Default location for logs and configuration files

From a JavaFX application, on Windows 10/11 and Os X, I need to read configuration files and write log files. What is the default location for each platform. Is it the user home folder? String homeDir ...
user10053673's user avatar
1 vote
2 answers
57 views

How to search and format text block in Text Area with javafx

I have a javafx program and I am trying to locate a certain phrase in a text area. The phrase is entered by the user via a TextInputDialog control. I then handle the Next button inside the dialog that ...
Son of Man's user avatar
  • 1,258
0 votes
1 answer
37 views

Two Javafx threads do not run independently of each other

I create two standard threads (Thread class) which each encapsulate a JavaFX thread with the Platform.runLater(...) method. Until then the two java threads are created correctly. Then I start both ...
Estienne's user avatar
0 votes
0 answers
35 views

How to create and Run Executable Jar from JAVAFX Aplication [duplicate]

I have created JavaFx application, and I want to create Executable Jar out of it and when I click it should run, currently I am starting my Application Using command javafx:run below is my pom file &...
Sam's user avatar
  • 7
1 vote
0 answers
32 views

How to implement a ComboBox Act like a Search Field in JavaFx?

I am trying to implement a ComboBox having functionality of searching items in it. the user will search the item and combobox will show the item and with the help of up, down keys or mouse i can ...
AdnanArch's user avatar
  • 104
-1 votes
0 answers
20 views

Error in importing Google Fonts in my CSS Javafx

Can anyone tell me what's the problem to this? I imported it into my css file copied from google fonts Sep 17, 2023 9:25:52 AM com.sun.javafx.css.StyleManager loadStylesheetUnPrivileged INFO: Could ...
Hanzo's user avatar
  • 1
0 votes
0 answers
44 views

Implementing scenebuilder into a javafx project

I'm trying to get a interface from scenebuilder working in my javafx project. I was wondering why I was having issues loading the program when running. This is my application file package com.example....
Cckirk's user avatar
  • 1
0 votes
0 answers
22 views

Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space - While using medusa ga

I'm using the Gauge from Medusa to show battery percentage for my JavaFX project. After some iteration of updating I'm getting this error. Here is the error I'm getting. Exception in thread "...
Jenil's user avatar
  • 1
-3 votes
0 answers
40 views

How to fire Button in JavaFx by Using code? [duplicate]

My code is working fine when and pressing my calculator buttons with mouse, but I want to add functionality when I press any button then particular will get fired my current way of doing... <...
Sam's user avatar
  • 7
-1 votes
0 answers
21 views

Javafx Intellij IDE [duplicate]

Can I asked why this error occurs? Exception in Application start method java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(...
Hanzo's user avatar
  • 1
0 votes
1 answer
43 views

JavaFX runtine components are missing? [duplicate]

Hello i try to build an artifact but they say:enter image description here i try to add maven dependency on the projetstructure, but that doesn t work.enter image description here what can i do ? ...
dominguez damien's user avatar
0 votes
1 answer
19 views

JavaFX application unable to launch after I've modelled the FXML with SceneBuilder [duplicate]

Just finished creating a basic UI on SceneBuilder and saved the FXML onto Java, but now whenever I launch the application [HelloApplication] it gives an error about fxml location not being set Is this ...
sadgeworth's user avatar
0 votes
0 answers
36 views

JavaFX not rendering via gluonfx:nativerun on graalvm-svm-java17-linux-gluon-22.1.0.1

I am trying to use gluon's substrate graalvm native-image on Ubuntu 22.04. When you run using mvn gluonfx:run on the examples, for instance HelloFXML, none of the text is displayed, as some of our ...
Byron's user avatar
  • 318
-1 votes
0 answers
36 views

hover using CSS in a JavaFX APP using VScode doesn't work on the App running [closed]

App Code: package sample; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; import javafx.stage....
Marcus César Santos Pereira's user avatar
0 votes
0 answers
26 views

Java program not working after building giving Error: Could not find or load main class [duplicate]

I have a problem that when I try to run the program I made it does nothing and when I try to run it in cmd using java <programName.jar> it gives me this error Error: Could not find or load main ...
Titan's user avatar
  • 13
0 votes
0 answers
41 views

Unable to switch scenes in JavaFX application

I'm working on a JavaFX application, and I'm encountering an issue where I'm unable to switch scenes from main-view.fxml to imported-page.fxml. I've tried several approaches, but none of them seem to ...
Philip Housden's user avatar
0 votes
0 answers
40 views

FXML file is not being reached

I want to load a GUI using a fxml file. However after multiple attempts into fixing it, it keeps returning that the file is not found and/or that it is null. I have tried to place the file within my ...
Bogger's user avatar
  • 1
0 votes
1 answer
52 views

Selecting inner control of a custom listcell in a JavaFX ListView

I have: public class TaskCell extends ListCell<Activity>... .. private TextField textField = new TextField(); private HBox content = new HBox(..textField..); @Override public ...
tonimaroni's user avatar
  • 1,064
0 votes
1 answer
56 views

Changing JavaFX-Label Text in an small Client - Server Application

Ive created a small client-server prorgramm which works as following: A Client sents all five seconds a random number to a server which sends then sends a (more or less famous) quote back to the ...
Thriest's user avatar
  • 46
0 votes
0 answers
42 views

JavaFX remove focus glow [duplicate]

I know this issue have been raised before, but I still don't know how to completely remove the glow when items are focused. I have been working with this: https://www.jensd.de/wordpress/?p=1245 and ...
droid's user avatar
  • 111
-1 votes
0 answers
58 views

Force Dragged Label to Appear Above Everything?

I have a JavaFX Label that I create inside of a VBox using the following Java code: Label label = new Label("Label"); NodeMakeDraggable(label, label.getText()); myBox.getChildren().add(label)...
Runsva's user avatar
  • 393
0 votes
1 answer
38 views

How to add as many instances of a Pane defined in a separate fxml file as there are entries in a HashMap into a ScrollPane?

The Pane (pane - fxml: deadline-example.fxml) has elements (Labels & a pie chart) that are set based on a specific instance of the Deadline class. I also have another scene (deadline-menu.fxml) ...
wan1796's user avatar
0 votes
1 answer
58 views

How to drag children outside of parent layout JavaFX

Hi and thanks in advance for any advice. Basically I have a flowpane as the content of a scrollpane for showing a user Buttons containing data. I need to be able to drag these anywhere on the screen ...
EurosO's user avatar
  • 1
0 votes
2 answers
60 views

MouseEvent "GetX" & "GetY" Returning Alternating Values

I have a JavaFX Label that's created & added inside of a TitledPane. I want that Label to be draggable, and return to it's original position after I stop dragging it. The label is created & ...
Runsva's user avatar
  • 393
1 vote
1 answer
46 views

How do I get X and Y Coordinates of different rows and columns in a gridpane?

I'm currently making a game board and want to be able to move pieces from one tile to another. I'm trying to do this by getting the centerX and centerY of each tile as the user click on it, which ...
Ryan Cruz's user avatar
-1 votes
0 answers
29 views

How to load fxml from an external jar [duplicate]

I have a project which is packaged as jar.This jar includes a fxml and its controller. I want to load this fxml from another project. But it cannot find the location. The project which includes fxml ...
şahin's user avatar
  • 17
0 votes
0 answers
26 views

Pre-Populate TableView Data Into an FXML Window

The basis of this is: I'm trying to get all of the components in the modify appointments.fxml file to pre-populate the contents of the 'customerTable' tableview into their respective components. The ...
pmccu's user avatar
  • 11
1 vote
1 answer
43 views

Why does selectRange() in JavaFX TextArea sometimes not highlight the selection?

I have written the following code in my JavaFX main class: package jfxTest; import java.util.Random; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control....
nick16384's user avatar

1
2 3 4 5
762