Skip to main content

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.

0 votes
0 answers
8 views

Packaging cross-platform Appimages and DEB Packages in Linux missing dependencies

I have a JavaFX Application, and I'm using maven to distribute it. Currently, I first create a runtime image of my program with jlink, and then package it with jpackage. However, if I package either a ...
mgcv's user avatar
  • 1
0 votes
0 answers
7 views

JavaFX TextArea - Get caret bounds

I am trying to show a popup beneath the caret of a text area. This means I need both X and Y coordinates. I am currently trying to achieve it this way: final var textFieldBounds = input....
Marcel's user avatar
  • 1,536
0 votes
0 answers
13 views

JavaFX Preloader and Spring: Cannot Load configuration class

I'm trying to create a lib-agent (later having to use graalvm) and I only have to use cli commands. After using this command: java -agentlib:native-image-agent=config-output-dir="META-INF/native-...
Logan's user avatar
  • 3
0 votes
1 answer
23 views

How to request focus for a certain field?

I am developing a Login Dialog for a Smart Card Token Management with Certificate System. Below, I added example code to demonstrate the issue. If I start the application I first see a login dialog ...
Billie's user avatar
  • 155
0 votes
1 answer
26 views

Show a graphstream graph in a javafx panel

I want to show a graphstream graph in a javafx StackPane panel. I know there are some similar questions in the net and in this page, but I'm getting a different output and error. My code is in the ...
Serinus Serinus's user avatar
0 votes
0 answers
46 views

Designing fancy buttons in JavaFX without HTML

I am working on a project in JavaFX to make a fancy UI (using CSS and FXML) and I stumbled across the code below for a fancy button that I want to use. I copied the CSS code and wrote it in a CSS file ...
Alexander Jonsson's user avatar
-3 votes
0 answers
63 views

How to properly design a program with multiple menus using MVC

I am creating a program in which I have a MainMenu class which represents the main menu of the program. The main menu will have several different options to choose from through buttons, one of which ...
Alexander Jonsson's user avatar
3 votes
0 answers
47 views

Window jiggles on JavaFX window when opening/closing dialog on Linux

This is weird. I have a JavaFX application when run on Linux the window jiggles whenever you open and close another dialog. I notice that the maximize button is removed from the window when the dialog ...
Monotone's user avatar
-2 votes
0 answers
53 views

JavaFX node to PDF using SVG? [closed]

Edited to hopefully now meet StackOverflow guidelines. Possible duplicate of How can I export a JavaFX node to an SVG image? I am trying to get a rather complicated tree chart JavaFX node onto a PDF ...
Sarah's user avatar
  • 63
0 votes
1 answer
61 views

Robot class in Javafxml

I am a beginner, and I have a question regarding Robot class in JavaFX. I have the following code. Basically, when I manually click on AnchorPane, method click gets activated, and when the mouse ...
user11813719's user avatar
0 votes
1 answer
37 views

JavaFX Preloader: Expected static method javafx.graphics/com.sun.javafx.iio.ImageStorage.addImageLoaderFactory

In order to create a native image with GraalVM I must first create a lib-agent. I use this command line: java -agentlib:native-image-agent=config-output-dir="META-INF/native-image" --module-...
Logan's user avatar
  • 3
0 votes
0 answers
32 views

how to make a window in javafx refresh [duplicate]

I'm creating a ray Casting application and in it I need to draw a frame every 30 seconds and delete the old one. But my stage waits for the end of the cycle and only then is it drawn. How can I make ...
Morozov 310's user avatar
0 votes
1 answer
49 views

Packaging a java 8 - maven - javafx 22 application

I read an article here and understood that there are differences between packaging JavaFX 11 and Java 11, from my project. However, I still don't know how to do it with my project. Mine is built in ...
Shemuel's user avatar
  • 21
0 votes
0 answers
102 views

how to use resources with maven [duplicate]

I created a Maven project to use JavaFX. I have two folders: src/main/java/application containing my source code. src/main/resources which must contain the resources. I found some Java code that ...
miminbat's user avatar
0 votes
0 answers
43 views

JavaFX Controller. How to ensure that a Methode is called before involing the rest of controller like @FXML [closed]

My problem rightknow is i tried to pass an object from one stage to another, which i somehow succesfully made. I can use the Object in the methode where i passed it but i cant use it in any methode ...
Dolasingam's user avatar

15 30 50 per page
1
2 3 4 5
2581