Adding JavaFX PieChart in JPanel

I want to add a Pie chart inside a JPanel. I have gone through this and this. But it didnt helped me. I tried this code in the debugger but it is not getting pass line X. Somehow setScene function is …

Can JavaFX realistically be used in a non-modular environment?

I’ve attempted to use JavaFX by following instructions found at: https://openjfx.io/openjfx-docs/ under “JavaFX and IntelliJ” -> “Non-modular with Maven” After completing steps …

Opening app on macOS 11 Big Sur from JavaFX application randomly fails with kLSNoExecutableErr

We have a desktop JavaFX application (well, TornadoFX) that downloads an archive, extracts another app from it and launches this app with macOS open command. Simplified kotlin code looks like: …

NoSuchFileException java

So I’m currently working on a java fx project and I am trying to get my program to read 2 txt files (name.txt) and (password.txt). When I run this in IntelliJ it works as intended but when I run the …

How to ensure Stage opens as a window and not a tab?

New stages traditionally opened as new windows.Then MacOS came around and introduced this in (System Preferences -> General): Now all my new JavaFX stages are all opening as new tabs on top of the …

How do I make the background of a WebView transparent?

I have a Maven project in IntelliJ IDEA, using JDK 15 and JavaFX 15. I tried: Set style for WebEngine Set blend mode for WebView Tried WebPage Nothing succeeded. How do I make the background of the …

Ordinary object variable or JavaFX object property?

I’m working on an JavaFX app and trying to follow Model-View-Controller pattern. I have implemented the Model with ordinary java objects(Double, Integer, String…) thinking I would re-use the model …

Javafx- how this multiple toggle buttons (in one group) actions are correctly configure for my need

This is what happens. But i need to return colors when i press other toggle buttons What I need to do is colors need to be back to blue after clicking on another button (while toggling another button …

How to restart a timer in JavaFX?

I’m currently working on a program in which users can create their on time intervals for different exercises. Once start is pressed, the countdown begins for the first exercise. Once it is done, a …

JavaFX Maven Exception in Application start method

So I’ve been stuck with this problem for a few days now. I found and read a lot of posts here on stackoverflow and other sites, but none of the solutions worked for me. I have a problem with my JavaFX …