Category "javafx"

Selection Border in JavaFX. Wanting to change default behavior with CSS

I am using validation that puts a red border around my TextFields nameTF.setStyle("-fx-text-box-border: red;"); And set it back to default using nameTF.setStyle

How to handle the mouse wheel scrolling event using JavaFX?

Just need to get some numeric equivalent, which will show how much the wheel is scrolled. I managed to find an example only using awt/swing: Java Docs P.S. So

freeze first column in tableview javafx

I have a tableview(javafx) where I want to freeze the first column, means if you scroll to the right side, the first column would always remain in place on scre

How to generate a jar and native bundle (dmg, exe, etc) from the same code in JavaFX

I have a JavaFX app setup in IntelliJ. This app can run from the command line and as a gui from the jar. In addition to the two modes from the jar, I want to al

JavaFX Modular Application, java.lang.module.FindException: Module javafx.controls not found (Java 11, Intellij)

I have a problem with my modular JavaFX application. I created a JavaFX project and added the JavaFX lib and JavaFX modules get recognized. However, I keep gett

Can javafx run with DRM in ubuntu without desktop environment?

I am tring to run a javafx program on ubuntu with this DOC,i am using sdk:monocle-linux-x64_bin-sdk,and copy the library to lib path(include the libgluon_drm-1.

Error occurred during initialization of boot layer java.lang.module. FindException: Module javafx.controls not found

I am trying to build the sample javaFX application in the Intellij 2018.3 IDE. I have installed the oracle JDK11, and downloaded openjfk11. I created a library

Restarting and pausing and resuming clip hangs the gui of music player, while pressing pause and play resumes playing from stopping point

This program is a music player that allows user to pick a .wav file, play, pause, resume, and restart a the music file from a clip object and audioinput stream.

Take a txt file and Insert to tableview (JavaFX)

I try to insert to tableview from txt file, but I couldn't do it. This is my txt file. aa.txt (It contains int A, int B, int F) 0 0 0 1 0 1 0 1 0 1 0 0 Th

Painting difuse texture in javafx?

Is there a way to paint a 3d texture on a 3d surface like blender ?

Can open fontawesomefx-glyphsbrowser- windows batch file

Can someone tell how to open font awesome font browser (linked below)- windows batch file. when I double click, command is opening but it shows an exception an

JavaFX - Making a post request using org.apache.httpcomponents fails

When making a post request to my backend, I get the following error. I can't really find a fix online and am very new to Java. Here is the error: Caused by: jav

How to dynamically resize an svg in javafx according to the size of the region

I'm keen on svg and would like to put many of them in my User Interface. But I have a problem with the size of svg. I would like to load any svg I retrieve as a

Converting from Swing to JavaFX? (Migration Guide)

When converting a Swing project to a JavaFx project, which classes from JavaFx match up to the Swing classes? A 1-1 matchup is best. I am not looking for inte

JavaFX: check whether a text property is blank (and not just empty)

I want to have a button enabled or disabled based on whether a text field contains anything, and I want to implement this by using property binding. So at fir

Unable to run javafx project

I am getting the following error when I run the main file in the Javafx project: C:\Users\monu\OneDrive\Documents\jdk-11.0.10\bin\java.exe --module-path C:\D-d

Styling and organizing nodes inside a scene

I want to do the following things: Organize my JavaFX code's nodes Increase the size of my combo boxes a little bit Change the scene background's color. My c

How do I see if a specific CheckBox is selected within a GridPane?

I've created a 10x10 GridPane of CheckBoxes. I need to see whether a specific CheckBox is selected, but the GridPane is made up of nodes. So If I access a parti

"Graphics Device initialization failed for : d3d, sw" for JavaFX on IntelliJ IDEA Windows

While trying to run a simple JavaFX program on IntelliJ IDEA, I kept getting a long line of errors in the console that started with "Graphics Device initializat

Javafx - change Theme (CSS) on active window

I want a Button that allows me to switch between Dark/Light-mode. But I have the problem If I switch, the active windows will not change their Style. First of t