Category "javafx"

How to lock the divider in SplitPane JavaFX?

I have a SplitPane and I need to divide the layout 25% and 75%. Also, I need to disallow dragging towards right side beyond the 25% split. However I can drag to

How to dynamically change font size in UI to always be the same width in JavaFX?

What I am trying to do is create a label in fxml, using Scenebuilder, which updates its font size to always ensure that the content of the label is the same siz

How to get text from TextArea in JavaFX saving line breaks?

I have a TextArea and a few lines of text in it. When I extract String by getText() method what I`m getting is a line of text instead of really written few line

How to get text from TextArea in JavaFX saving line breaks?

I have a TextArea and a few lines of text in it. When I extract String by getText() method what I`m getting is a line of text instead of really written few line

JavaFX: How to pan a ScrollPane that contains Button children?

In JavaFX, I have a ScrollPane which contains a TilePane which contains various Buttons. This application will run on a touch screen, so the user will scroll b

Can't run a simple demo of a Media class

I found a video on YouTube about using Media class, but when I try to do it - it gives me an error. Could somebody tell me whats wrong? Here's the code, exactly

How to improve performance of JavaFX graphic drawing?

Situation : I've created an app which needs to draw simple rectangles (1x1 - 3x3 size) depends on some variables stored in array of corresponding size (900x900

How do I safely modify JavaFX GUI nodes from my own Thread?

I try to change a JavaFX GUI node in a thread, but I see the following error: Exception in thread "Thread-8" java.lang.IllegalStateException: Not on FX ap

File has been compiled by a more recent version of the Java Runtime error SceneBuilder

I've used JLink + JPackage to build a JavaFX app into a self-contained application. I'm using JDK 14. However, when I try to open one of my FXML files in Intell

java.lang.NullPointerException: Location is required still not working

I have also run into some problems trying to get my JavaFX program to run. Like some of the others, I keep getting an error of java.lang.NullPointerException: L

Adding borders to GridPane JavaFX

I am creating a board game in JavaFX using GridPane. There are 7 different animations which could be placed in each grid (cell) of the grid. Initially the gri

error: package javafx.scene.media does not exist

I'm trying to create javafx media player as gradle project, but got this error.error: package javafx.scene.media does not exist on line: import javafx.scene.med

Using RestFB along side a JavaFX WebView, how can I post to Facebook?

I've been trying a number of ways to achieve a way to post to Facebook from within my JavaFX application using a WebView to manage login. I have read Facebook's

JavaFX FileChooser and DirectoryChooser

I came across a little problem now with JavaFX. I tried to make a filechoosing in my code where I can point on a FOLDER instead of a file. Currently I don't hav

How to populate a list values to a combobox in JavaFx

I have a list of values which i want to populate in a combobox in javaFx. this is my combo.xml <AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="

Add JavaFX jmods to java --list-modules

Preface: I need to open .jar files which requires Java and JavaFX. I have installed both Java (from Oracle website) and JavaFX (SDK from openjfx website). I ha

How to create a standalone .exe in Java (that runs without an installer and a JRE)

How can I make a standalone Windows executable(.exe) for my JavaFX project(I wrote in IntelliJ IDEA), without an installer for my program? I want the user to do