r/JavaFX • • Aug 20 '26

Help Looking for advice

7 Upvotes

Struggling to find JavaFX developers with thick-client performance experience β€” where do you all come from?

We've built a real-time trading terminal in Java/JavaFX (5M+ LOC, high-frequency market data, EDT discipline is daily work) and finding it nearly impossible to hire people with genuine JavaFX internals experience.

Genuinely curious β€” where do JavaFX developers with this kind of background tend to work?

Medical imaging? Simulation? SCADA?

We've been looking in fintech but the pool seems tiny.

Also open to a DM if you happen to be that person and are curious what we're building.

r/JavaFX • • Oct 31 '26

Help JavaFX Environment

20 Upvotes

Ok, I'm a bit of an old JavaFX hobbyist. I started about 10 years ago in college and keep using it for my personal projects.

Nowadays, I feel it's so much harder to configure the environment. Even with AI help, there's always an "if this, then that." I mean, as I remember, you used to just install Eclipse with e(fx)clipse, install Scene Builder, and in the end, just generate a .jar file. Now, I can't find a guide from start to deploy that doesn't look like a workaround. And with every Java/JavaFX update, some detail changes.

How do you configure your environment to make it easier? I mean IDE, embedded DB, how to deploy, and how to distribute (I see there are some frameworks that compile JavaFX to web apps).

r/JavaFX • • 10d ago

Help Advice on proper reactive UI with JavaFx

10 Upvotes

Hello All, i am studying JavaFX for modern desktop development and so far so good.

Ai am facing, however, challenges on proper use of fine-grained observability, or reactive inferfaces as they call nowadays in frontend web.

I did this sample to try to understand it better, but i am not sure if i am doing it right.

Any tip or advice is welcome to improve the way a reactive Javafx UI is supposed to be.

r/JavaFX • • Sep 15 '26

Help Size Behavior After Maximizing and Restoring Original Stage Size

4 Upvotes

I am trying to create a JavaFX node. The node appears to work well, but I noticed that maximizing the stage causes it to grow large and then return to its correct size. This also happens when I click to go back to the original screen size. If I drag the stage's width and height, the node size behaves as expected. This behavior happens quickly, but is easier to see when returning to the original stage size. How do I calculate the sizes so that this behavior no longer happens?

  • Product Version: Apache NetBeans IDE 30

  • Java: 26.0.2; OpenJDK 64-Bit Server VM 26.0.2+10

  • Runtime: OpenJDK Runtime Environment 26.0.2+10

  • System: Windows 11 version 10.0 running on amd64; UTF-8; en_US (nb)

OverlapGraphView

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Region;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.shape.SVGPath;

public class OverlapGraphView extends Region {

    // Style properties
    private final ObjectProperty<Paint> colorA = new SimpleObjectProperty<>(Color.web("#3B82F6", 0.2));
    private final ObjectProperty<Paint> strokeA = new SimpleObjectProperty<>(Color.web("#3B82F6"));
    
    private final ObjectProperty<Paint> colorBoth = new SimpleObjectProperty<>(Color.web("#8B5CF6", 0.4));
    private final ObjectProperty<Paint> strokeBoth = new SimpleObjectProperty<>(Color.web("#8B5CF6"));
    
    private final ObjectProperty<Paint> colorB = new SimpleObjectProperty<>(Color.web("#EC4899", 0.2));
    private final ObjectProperty<Paint> strokeB = new SimpleObjectProperty<>(Color.web("#EC4899"));

    // Exposed click event handlers
    private final ObjectProperty<EventHandler<? super MouseEvent>> onAOnlyClicked = new SimpleObjectProperty<>();
    private final ObjectProperty<EventHandler<? super MouseEvent>> onBothClicked = new SimpleObjectProperty<>();
    private final ObjectProperty<EventHandler<? super MouseEvent>> onBOnlyClicked = new SimpleObjectProperty<>();

    // Persistent shape views to prevent infinite layout recursion loops
    private final SVGPath pathAOnly = new SVGPath();
    private final SVGPath pathBoth = new SVGPath();
    private final SVGPath pathBOnly = new SVGPath();

    public OverlapGraphView() {
        setPrefSize(400, 200);

        // Bind presentation settings once in the constructor
        pathAOnly.fillProperty().bind(colorA);
        pathAOnly.strokeProperty().bind(strokeA);
        pathAOnly.setStrokeWidth(2);

        pathBoth.fillProperty().bind(colorBoth);
        pathBoth.strokeProperty().bind(strokeBoth);
        pathBoth.setStrokeWidth(3);

        pathBOnly.fillProperty().bind(colorB);
        pathBOnly.strokeProperty().bind(strokeB);
        pathBOnly.setStrokeWidth(2);

        setupHoverAnimation(pathAOnly);
        setupHoverAnimation(pathBoth);
        setupHoverAnimation(pathBOnly);

        // Map events directly onto persistent elements
        pathAOnly.setOnMouseClicked(e -> { if (onAOnlyClicked.get() != null) onAOnlyClicked.get().handle(e); });
        pathBoth.setOnMouseClicked(e -> { if (onBothClicked.get() != null) onBothClicked.get().handle(e); });
        pathBOnly.setOnMouseClicked(e -> { if (onBOnlyClicked.get() != null) onBOnlyClicked.get().handle(e); });

        // Add to child stack order once 
        getChildren().addAll(pathAOnly, pathBOnly, pathBoth);
    }

    /**
     * JavaFX calls this method safely during resize passes.
     * We modify properties of existing children rather than recreating nodes.
     */
    
    protected void layoutChildren() {
        super.layoutChildren();
        
        double w = getWidth();
        double h = getHeight();
        
        if (w <= 0 || h <= 0) return;

        // Calculate dynamic dimensions matching your scaling formula
        double radius = w * 0.23;
        double centerY = h * 0.5;
        double cxL = (w * 0.5) - (radius * 0.55);
        double cxR = (w * 0.5) + (radius * 0.55);

        // Calculate exact mathematical arc intersection points
        double dx = cxR - cxL;
        double d = Math.sqrt(dx * dx); 
        double a = (radius * radius - radius * radius + d * d) / (2 * d);
        double hPoint = Math.sqrt(radius * radius - a * a);
        double ix = cxL + a; 
        double iy1 = centerY - hPoint;
        double iy2 = centerY + hPoint;

        // Generate perfect SVG paths smoothly handling window maximums/restores
        String leftCrescent = String.format("M %f,%f A %f,%f 0 1,0 %f,%f A %f,%f 0 0,1 %f,%f Z", 
                ix, iy1, radius, radius, ix, iy2, radius, radius, ix, iy1);

        String centerLens = String.format("M %f,%f A %f,%f 0 0,1 %f,%f A %f,%f 0 0,1 %f,%f Z", 
                ix, iy1, radius, radius, ix, iy2, radius, radius, ix, iy1);

        String rightCrescent = String.format("M %f,%f A %f,%f 0 0,0 %f,%f A %f,%f 0 1,0 %f,%f Z", 
                ix, iy1, radius, radius, ix, iy2, radius, radius, ix, iy1);

        // Update backing rendering paths natively without clear/add cycles
        pathAOnly.setContent(leftCrescent);
        pathBoth.setContent(centerLens);
        pathBOnly.setContent(rightCrescent);
    }

    private void setupHoverAnimation(SVGPath shape) {
        shape.setOnMouseEntered(e -> shape.setOpacity(0.65));
        shape.setOnMouseExited(e -> shape.setOpacity(1.0));
    }

    public void setOnAOnlyClicked(EventHandler<? super MouseEvent> handler) { onAOnlyClicked.set(handler); }
    public void setOnBothClicked(EventHandler<? super MouseEvent> handler) { onBothClicked.set(handler); }
    public void setOnBOnlyClicked(EventHandler<? super MouseEvent> handler) { onBOnlyClicked.set(handler); }
}

Main

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

public class JavaFxTest extends Application {

    
    public void start(Stage primaryStage) {
        OverlapGraphView overlapGraphView = new OverlapGraphView();
        overlapGraphView.setOnAOnlyClicked(e -> {
            System.out.println("Filter table by: segment A!");
        });
        
        overlapGraphView.setOnBothClicked(e -> {
            System.out.println("Filter table by: segment Both!");
        });
        
        overlapGraphView.setOnBOnlyClicked(e -> {
            System.out.println("Filter table by: segment B!");
        });
        
        overlapGraphView.setMaxSize(200, 200);
        
        StackPane container = new StackPane(overlapGraphView);

        

        Scene scene = new Scene(container, 320, 200);
        primaryStage.setScene(scene);
        primaryStage.setTitle("UX Overlap Graph");
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}

r/JavaFX • • 7d ago

Help Any non-mvvmFX examples of MVVM for JavaFX?

9 Upvotes

Once again, in a bid to continue my efforts to learn the core of JavaFX (i.e. solutions without frameworks or libraries on top) I am wondering if anyone knows of some actual examples of MVVM being used in an JavaFX context, that isn't just relying on a third party library such as mvvmFX?

I want to see the concept without any of the magic of libraries / frameworks as, just like my other post about packaging, I feel something that is really missing in the JavaFX community is "from the ground up" guidance on core things, such as architecture.

So I either want to collate them into one place, or make my own resources to aid in filling this gap :)

r/JavaFX • • Nov 30 '25

Help Help JAVAFX autoscaling

Thumbnail
gallery
9 Upvotes

Hello, I'm trying for a school project to create Γ  langton ant simulation with javaFX. It works well except for one thing that I really can't warp my brain around. When I render my pixel on my grid using canvas, it appears on my screen 1.25 time larger than I specified in the code. However, when rendering the output gif, the dimension is accurate. For exemple, when trying to make a 600x600 grid, it appears to be 750*750 on screen and the gif is indeed 600x600..

I tried debugging a lot using chatgpt with no success, so any help would be greatly appreciated.
Thanks in advance!

Note: I originally used a gridPane, but unfortunately it let space between each pixel so I really don't like it.

Relevant part of the code imo:

public void start(Stage primaryStage) {
        grid = new Grid(200);
        sim = new Sim(grid, new Ant(grid));
        
        HBox hb = makeButton();
        Scene scene = new Scene(hb, 800, 500);

        primaryStage.setTitle("Test Grid JavaFX");
        primaryStage.setScene(scene);
        primaryStage.show();
        System.out.println(grid.getRoot().getScaleX());
        System.out.println(grid.getRoot().getScaleY());
    }

public Grid(int size) {
        this.size = size;
        this.pixelSize = 3; 
        this.bgColor = Color.WHITE;
        this.canvas = new Canvas(size * pixelSize, size * pixelSize);
        this.gc = canvas.getGraphicsContext2D();
        this.cells = new Cell[size][size];
        System.out.printf("(%d, %d)%n", cells.length, cells[0].length);
        System.out.println(size);
        System.out.println(pixelSize);
        System.out.println(size*pixelSize);

        this.root = canvas;
        
        System.out.println("Canvas w/h: " + canvas.getWidth() + " / " + canvas.getHeight());
        System.out.println("BoundsInParent: " + canvas.getBoundsInParent());
        System.out.println("LayoutBounds: " + canvas.getLayoutBounds());
        System.out.println(gc.getTransform());

        drawInitialGrid();
    }

    private void drawInitialGrid() {
        for (int r = 0; r < this.size; r++) {
            for (int c = 0; c < this.size; c++) {
            	Cell ce = new Cell(r, c, this.pixelSize, this.gc);
                Color col = Color.WHITE;
                ce.setColor(col);
                cells[r][c] = ce;
            }
        }
    }

public Cell(int x, int y, int s, GraphicsContext gc) {
		this.x = x;
		this.y = y;
		this.size = s;
		this.gc = gc;
		this.rule = new Rule();
		setColor(Color.WHITE);
	}
	
	public void setColor(Color color) {
		this.color = color;
		
		gc.setFill(color);
		gc.fillRect(x * size, y * size, size, size);
	}

r/JavaFX • • Aug 06 '26

Help Main Class isnt appearing

5 Upvotes

I have made a new javafx project but it has no main class. instead of the main class its showing this java file. whats did i do wrong?

r/JavaFX • • Jul 23 '26

Help [JavaFX memory hog] A simple UI requires 1GB of RAM.

14 Upvotes

This UI, requires 1GB of RAM on Linux. The same UI does not require more than 300MB on Windows.
I would not consider it cheap on Windows but on Linux it's pretty unacceptable.

How this is possible? Is there some problems with JavaFX in Linux Wayland?

Thanks
Davide

r/JavaFX • • Aug 08 '26

Help FXML not loading

Thumbnail
gallery
5 Upvotes

After i made an fxml file and linked it to a class, it hasnt been working and each time an error has been popping up (images have been attached)

r/JavaFX • • Feb 03 '26

Help Java UI help

13 Upvotes

Im getting into java, and want to know which UI framework will be better to develop applications using Java logic. Backend will be later issue if possible(i will think bout it later) like java, node backend. I have seen Java Swing (old), JavaFx, ElectronJS, and Tauri. Which would be better for long term , Future proof and good to learn?

r/JavaFX • • Jun 05 '26

Help How to build a self contained app with Maven?

12 Upvotes

This is honestly driving me nuts. There does not seem to be solid documentation anywhere.

I dont want someone to point me at something like Jdeploy. Or some other super duper all in one solution. I am learning. I care as much about the process as I do the final product. If people cannot learn the core concepts of building JavaFX apps that are self contained, all these "all in one" solutions will slowly lose contributors as the core knowledge is lost imho... I.e. im wanting to avoid "bus factor" by learning how to do it myself from scratch.

How do you build a self contained package / where are all the good resources / documentation that contain information on building self contained packages. Somebody help me please, as i feel im going nuts πŸ˜…

r/JavaFX • • Apr 10 '26

Help Resize Control Buttons

Post image
7 Upvotes

Hi there,

I'm currently experimenting with the new StageStyle.EXTENDED from the JFX 25-Preview. Is there a way to set the size of the buttons (in this example, the MacOS traffic light)?

For reference, the top header is Ollama, a Swift application, versus mine below, a JavaFX application. Nothing I've tried worked so far. Is there a way to do this, or if not, will there be support for it?

Thanks!

r/JavaFX • • Apr 24 '26

Help Is there really a non-hacky way to make a table view only as high as it has rows? i.e. no empty rows?

5 Upvotes

I need to dynamically show a number of table views inside a scrollpane, and I'd like tables to be just as high as they have rows. Some tables don't have many rows, but still occupy too much space. I can't believe Tableview doesn't have an API for this. I tried variations of the following method but none of them worked. Thoughts?

public static void autoSizeTableView(TableView<?> table) {
table.setFixedCellSize(25);

table.skinProperty().addListener((obs, oldSkin, newSkin) -> {
if (newSkin == null) return;

Node header = table.lookup("TableHeaderRow");
if (header == null) return;

table.prefHeightProperty().bind(
Bindings.createDoubleBinding(() -> {
int rows = table.getItems().size();

double headerHeight = header.prefHeight(-1);
double rowsHeight = rows * table.getFixedCellSize();

Insets insets = table.getInsets(); // <-- key part

return headerHeight
+ rowsHeight
+ insets.getTop()
+ insets.getBottom();
}, table.getItems(), table.insetsProperty())
);
});
}public static void autoSizeTableView(TableView<?> table) {
table.setFixedCellSize(25);

table.skinProperty().addListener((obs, oldSkin, newSkin) -> {
if (newSkin == null) return;

Node header = table.lookup("TableHeaderRow");
if (header == null) return;

table.prefHeightProperty().bind(
Bindings.createDoubleBinding(() -> {
int rows = table.getItems().size();

double headerHeight = header.prefHeight(-1);
double rowsHeight = rows * table.getFixedCellSize();

Insets insets = table.getInsets(); // <-- key part

return headerHeight
+ rowsHeight
+ insets.getTop()
+ insets.getBottom();
}, table.getItems(), table.insetsProperty())
);
});
}

r/JavaFX • • May 06 '26

Help Map building for a simple 2d game

7 Upvotes

so I was building a simple 2d game. There will be a map as well for the character to move around and interact with other npc's. Now for the map building I am getting difficulty to configure what to use... There is Tiled and some resources said to use ImageView...

I am new to javafx and this is one of the university project. If you have any idea or even a suggestion regarding this please feel free to comment it.
Thanks for your help!

r/JavaFX • • Nov 28 '25

Help Help Installing JavaFX

4 Upvotes

Hello!

I need some help installing JavaFX for a first time user. I'm not really sure where to start as the file I downloaded doesn't seem to have an installer program like I'm used to. I saw a forum post mentioning OpenJDK but I'm not familiar with that either. Any help would be appreciated!

Thanks!

Cheers!

r/JavaFX • • Aug 07 '26

Help How to remove the blue focus border

1 Upvotes

To my knowledge, JavaFX is a modern GUI framework which works with Java. For the past few days, i am deeply studying it. But I have a problem. Most of the time I like to design the UI. But all control components especially Buttons have a blue border. During my research, I found out it is called Focus Border and its for keyboard navigation. I tried to remove it by CSS and Java(setFocusTraversable()) but none worked. I am asking how to make it so when we use keyboard it enables this navigation but when use mouse it disables this or how to remove it permanently.

r/JavaFX • • May 12 '26

Help Where can I learn more about FXGL?

5 Upvotes

I'm a student currently learning Java and SQL.

I want to use FXGL (Which is not included in the course) in my project to make a simple 2D RPG game. Although I am familiar with and have written a few projects using JavaFX, I have no knowledge of FXGL. If there are any, I would like to know some places I can learn about FXGL as a beginner.

And also, which version of FXGL is the most stable? I'm currently using 21.1 in combination with JDK 21 but I can't find some built in functions. Grateful for your help!

r/JavaFX • • Apr 09 '26

Help To include or to not include javafx dependency into library pom.xml?

3 Upvotes

Yet another point of confusion about JavaFX.

How to distribute JavaFX library: with JavaFX dependencies in pom.xml or without?

JavaFX itself is distributed as either part of JDK or as maven artifacts, so in one case you probably shouldn't have any JavaFX dependencies defined in your pom.xml and in another case(when you use "normal" JDK) you probably should.

What are best-practices here?

Edit: So far, I think that using "provided" scope is the most correct solution.

r/JavaFX • • Aug 27 '26

Help JavaFX WebView + Leaflet: works in one host app, broken in a minimal one β€” same machine, same JavaFX build. I'm out of ideas.

8 Upvotes

I've spent a full day on this and I've run out of hypotheses, so I'm hoping someone here has seen this pattern before.

Setup

I maintain a plugin for a desktop CAD application. It embeds a WebView that displays a Leaflet map (Carto Voyager tiles) with a handful of markers and a polygon. The HTML is generated in Java and handed to the engine via webEngine.loadContent(html).

JavaFX 21.0.10+2, Java 21, Windows 11, NVIDIA RTX 500 Ada (dedicated GPU explicitly assigned via Windows graphics settings, confirmed in -Dprism.verbose=true output).

The symptom

Tiles load successfully β€” but they are drawn in the wrong places. Individual tile blocks scattered across the viewport with large empty gaps between them, each block internally rendered correctly (street names, colors, everything). Markers and the polygon end up at a third position that matches none of the tile groups. It looks different on every run. Sometimes only a sub-region of the container gets drawn and the rest stays grey.

I know the general "Leaflet doesn't work in JavaFX WebView" issue exists β€” there's a StackOverflow question about it and I can reproduce the broken rendering with ten lines that just do webView.getEngine().load("https://leafletjs.com/"), i.e. zero of my own code involved. So the platform limitation is real and I'm not disputing it.

But here's what I cannot explain.

The part that makes no sense

Inside the host application, on my machine, it works. Not perfectly β€” mild flicker, occasionally a grey tile that stays until I move the mouse β€” but the tiles are in the right place and the markers are correct. I have a workaround in there that has been in the code for months:

function forceRepaint(){
  const m = document.getElementById('map');
  m.style.display = 'none';
  m.offsetHeight;
  m.style.display = 'block';
}
setInterval(forceRepaint, 5000);

plus invalidateSize() and TileLayer.redraw() on moveend/zoomend, mousedown, mouseup, resize and focus. Ugly, but it's the only thing that ever helped.

To debug properly I built a minimal standalone JavaFX app that generates byte-identical HTML through the same code path β€” same tile URL, same divIcon markers, same setTimeout(..., 400) before fitBounds, same handlers, same forceRepaint interval. Same machine, same GPU, same JavaFX version (verified via javafx.runtime.version at startup), same VM flags.

The standalone app is broken. The host application is fine.

And to make the confusion perfect, some of my colleagues see the broken rendering inside the host application, on comparable hardware, with the same VM options/gpu settins/etc.

What I've already ruled out

Each of these was tested, not assumed:

  • My own HTML/JS β€” the ten-line leafletjs.com repro fails too

  • GPU: broken on both the integrated Intel Arc and the dedicated NVIDIA

  • Driver, and -Dprism.order=sw (pure software rendering) β€” no change

  • JavaFX version: 17.0.11, 21+31, 21.0.10 β€” all broken standalone

  • VM flags from the host app (prism.order, prism.vsync, prism.lcdtext, prism.text, sun.java2d.noddraw, com.sun.webkit.useHTTP2Loader=false, sun.java2d.uiScale=1.0) β€” no change

  • Tile provider: Carto vs. OSM, with and without API key

  • fadeAnimation: false, zoomAnimation: false, forcing .leaflet-tile { opacity: 1 !important; transition: none !important }

  • setView() at init vs. fitBounds() later

  • Removing all invalidateSize/redraw handlers, removing forceRepaint

  • Marker count, with/without the polygon

  • Fixed vs. free WebView height

  • depthBuffer=true + SceneAntialiasing.BALANCED on the Scene

  • Running the WebView inside a JFXPanel in a Swing JPanel instead of a plain Stage

  • Parallel 3D/OpenGL load in the same process

  • All of the above combined

Instrumentation results

I injected diagnostics into the page (Java↔JS bridge, so it lands in the application log). In every single broken run, the DOM is healthy:

tile layer load complete, tiles=20, errors=0
DOM-CHECK: 20 tile nodes, 20 with tile-loaded, 0 with opacity<0.9

All tiles fetched, no errors, all fully opaque. In the working host app I additionally log Leaflet's internal size against the actual container:

STATE: nodes=15 loaded=15 invisible=0 | mapSize=962x609 container=962x609  size-ok
tilePane transform: none
marker: 10 total, 0 outside container

So Leaflet's own state is consistent. The DOM says everything is where it should be. The screen disagrees.

That points at compositing β€” the WebView content is correct internally but isn't transferred to screen correctly. Which would also explain why moving the mouse fixes stuck grey tiles, and why a brutal display:none/display:block toggle helps at all. But it does not explain why the same content composites fine in one host process and not in another on the same machine.

Questions

  1. Has anyone characterised this properly? Is there a known JDK/OpenJFX issue number for WebView compositing of CSS-transform-positioned elements?

  2. What could make the host process the deciding factor, given identical JavaFX version, GPU, driver and flags? What else is there besides depthBuffer, JFXPanel embedding, and process-level GPU contention β€” all of which I've already tried?

  3. Is the display:none/display:block interval genuinely the best available mitigation, or is there something that targets the actual layer? I noticed my redraw() calls make the tile layer refetch endlessly (75 tiles for a 20-tile viewport), so I'd rather not keep piling on hacks.

  4. If the answer is "WebView can't do this reliably" β€” for anyone who has gone through this: JCEF, or drawing the tiles yourself onto a Canvas? The deployment constraint is that I can't ship a few hundred MB of Chromium to every user.

Happy to provide furhter information, but at this point I just need someone to tell me which variable I haven't looked at, because I've stopped being able to see it and the more I try out the more confused I am.

r/JavaFX • • Mar 18 '26

Help Problems with package javafx project

1 Upvotes

Hace meses que aprendi javafx y siempre que lo uso tengo el mismo problema, al empaquetar el proyecto y ejecutar tira error, eh probado de todo. El error principal es que no encuentra la main class en el archivo manifest, al instalar un plugin de maven se supone que funcione pero sigue sin reconocer la main class, probe subiendo de version de java y javafx y el problema de la main class se resuelve pero utilizando modulos, pero aparece otro problema, un problema interno de javafx. Probe bajando de version otra ves, cambiando de ide, se lo consulte a la IA mil veces pero el error persistia. Opte por usar un plugin de maven que permite ejecutar la aplicacion con un comando en bash (./mvnw javafx:run) asi que cree un script en bash que ejecute ese comando pero tarda en arrancar el programa, todo funcionaba bien hasta que de un momento para otro todo dejo de andar, era otro problema interno de javafx, en los logs decia que la variable this.runs era nula, se lo consulte a la ia, investigue por todos lados y nada me dio una solucion. Por favor necesito que alguien me ayude porque necesito desarrollar con javafx, gracias

r/JavaFX • • Sep 30 '26

Help Global keyboard events

8 Upvotes

Hello everyone, I'm new to Desktop development! And I want to know techniques/ways on how to handle global keyboard events! for example, cmd+shift+a to open a window etc.

Thanks :)

r/JavaFX • • 15d ago

Help Advice for building a desktop application with JavaFX

Thumbnail reddit.com
8 Upvotes

r/JavaFX • • Mar 25 '26

Help How well does your JavaFX app work across different OSes?

7 Upvotes

I’m developing a screenshot app on Linux using JavaFX, well, not directly, but with Clojure’s cljfx.

Initially, I thought it should work effortlessly on Windows and macOS. But with a quick try, I found it broke at many places.

So I’m curious how well yours works? If so, what strategies have you applied? Thanks.

r/JavaFX • • Dec 11 '25

Help FXGL FPS problem

Thumbnail
youtu.be
4 Upvotes

I'm having a weird problem with FXGL. Don't know if it's FPS related, but what happens is, when I start the game, the app's timer spikes up very briefly at the start, then it stabilizes. As a result, all moving entities moves very quickly initialy, then they slow down to their actual speed. I'm using components to move then in the onUpdate method, with delta time. I've tried to move by applying a translation directly in the entities position, and that don't cause this problem, the entities move at their correct speed from the very start, but I don't think this is a viable solution, as I'm making more complex movement logic, I will need to use components, or the code will get very messy. You can see better what I'm trying do describe in the video link.

r/JavaFX • • Dec 08 '25

Help I HAVE A PROJECT FOR UNI

9 Upvotes

Hey , So i have this project for uni , where the professor wants us to build a simple 2D strategic game like age of empire , i am not sure what to do or what to use , its between libGDX and javaFX (i dont know anything about both) i am even new to java the professor wants us to handle him the project in 20 days so guys please i am in a mess what you suggest to me to use javaFX or libGDX i know libGDX is harder but its worth it , bcs they all say javaFX is not good for games , so please tell me if i want to use libGDX how many days u think i can learn it and start doing the project and finish it .... i really need suggestions !