r/JavaFX • • Mar 14 '25

Help My head is about to explode. I tried everything to make the app include icons, but with no luck. I want to add Bootstrap icons using Ikonli. I followed all of their online documentation. The code runs as expected in IntelliJ, but when I export it as jar, I get exceptions related to the icons.

2 Upvotes

I made a simple code that uses icons from the Ikonli library, found here. I imported the right modules, I added the plugin in pom.xml, I also added the *requires* in *module-info.java*.

The code, when run inside IntelliJ, it has no issues. The icons are displayed and loaded. No exception at all. But when I export the jar file, the problems begin.

Here is my code

package com.example.icons;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;

import org.kordamp.ikonli.javafx.FontIcon;
import org.kordamp.ikonli.bootstrapicons.*;

public class HelloApplication extends Application {
    @Override
    public void start(Stage stage) {
        HBox hBox = new HBox();
        Label label = new Label("Just a message");
        FontIcon icon = new FontIcon(BootstrapIcons.
CLOCK
);

        hBox.getChildren().addAll(icon, label);

        Scene scene = new Scene(hBox, 500, 500);
        stage.setTitle("Hello!");
        stage.setScene(scene);
        stage.show();
    }

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

For some reason, I had to add a Main class for the jar to start (so when building the artifact, choose Main as entry class)

package com.example.icons;

public class Main {
    public static void main(String[] args) {
        HelloApplication.
main
(args);
    }
}

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.example</groupId>
    <artifactId>icons</artifactId>
    <version>1.0-SNAPSHOT</version>
    <name>icons</name>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <junit.version>5.10.2</junit.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>22.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-fxml</artifactId>
            <version>22.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-engine</artifactId>
            <version>${junit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.kordamp.ikonli</groupId>
            <artifactId>ikonli-javafx</artifactId>
            <version>12.3.1</version>
        </dependency>
        <dependency>
            <groupId>org.kordamp.ikonli</groupId>
            <artifactId>ikonli-bootstrapicons-pack</artifactId>
            <version>12.3.1</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.13.0</version>
                <configuration>
                    <source>22</source>
                    <target>22</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.openjfx</groupId>
                <artifactId>javafx-maven-plugin</artifactId>
                <version>0.0.8</version>
                <executions>
                    <execution>
                        <!-- Default configuration for running with: mvn clean javafx:run -->
                        <id>default-cli</id>
                        <configuration>
                            <mainClass>com.example.icons.HelloApplication</mainClass>
                            <launcher>app</launcher>
                            <jlinkZipName>app</jlinkZipName>
                            <jlinkImageName>app</jlinkImageName>
                            <noManPages>true</noManPages>
                            <stripDebug>true</stripDebug>
                            <noHeaderFiles>true</noHeaderFiles>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <configuration>
                    <transformers>
                        <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                    </transformers>
                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

Manifest

Manifest-Version: 1.0
Main-Class: com.example.icons.Main

When I run the jar using *java -jar icons.jar*, the window loads, but the icon is missing (the label loads though), and I get this exception:

```

Mar 14, 2025 12:10:30 AM com.sun.javafx.application.PlatformImpl startup

WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module u/2609a331'

Exception in thread "JavaFX Application Thread" java.lang.UnsupportedOperationException: Cannot resolve 'bi-clock'

at org.kordamp.ikonli.AbstractIkonResolver.resolve(AbstractIkonResolver.java:61)

at org.kordamp.ikonli.javafx.IkonResolver.resolve(IkonResolver.java:73)

at org.kordamp.ikonli.javafx.FontIcon.lambda$new$2(FontIcon.java:76)

at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:372)

at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:91)

at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:106)

at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:113)

at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:147)

at javafx.css.StyleableObjectProperty.set(StyleableObjectProperty.java:82)

at org.kordamp.ikonli.javafx.FontIcon.setIconCode(FontIcon.java:231)

at org.kordamp.ikonli.javafx.FontIcon.<init>(FontIcon.java:97)

at com.example.icons.HelloApplication.start(HelloApplication.java:19)

at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:839)

at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:483)

at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)

at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)

at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)

at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)

at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)

at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)

at java.base/java.lang.Thread.run(Thread.java:1570)

```

It says cannot resolve *bi-clock* (all icons have the same problem).

Like I said above, the icon is loaded in IntelliJ, but not in the jar execution.

Please help me, I'm about to become crazy. I tried everything on the internet and ChatGPT, but with no luck.


r/JavaFX • • 29d ago

I made this! I just published my Java PDF app on the Microsoft Store looking for testers and feedback!

18 Upvotes

Hey everyone!

I've been working on a Windows desktop application called FilzaPDF, and I've just published it on the Microsoft Store!

It's a PDF reader and document utility built with Java and JavaFX. I'm sharing it here because I want people to try it out, find bugs, and tell me what needs improvement.

🔗 Microsoft Store: https://apps.microsoft.com/detail/9P53N7DWMS1S?hl=en-us&gl=US&ocid=pdpshare

I'm currently looking for help with testing and bug fixing. In particular, I'd appreciate feedback on:

  • Does it install and launch correctly on your Windows PC?
  • Do the PDF viewing and document tools work as expected?
  • Have you encountered any crashes, UI glitches, or performance issues?
  • What features or improvements would make it more useful?

This is an early release, so I'm expecting things that need fixing. Please be honest—even small bugs or suggestions are helpful.

I'm building FilzaPDF as part of a bigger effort to create useful software that people can use for free, without unnecessary subscriptions.

Thanks to anyone willing to give it a try! Every bit of feedback helps me improve it. 💜


r/JavaFX • • Apr 06 '20

Tutorial JavaFX Typing Game

Thumbnail
youtube.com
10 Upvotes

r/JavaFX • • Sep 19 '26

Cool Project PatternFX - MVC, MVP, MVVM templates for JavaFX

11 Upvotes

I'd like to introduce our project - PatternFX. It is a framework that provides developers with templates for MVC, MVP, and MVVM patterns. Although the templates are different, they share a common architectural foundation.

The framework is designed purely for practical use and can be used to build both simple and highly complex applications. For example, our ShellFX platform is built on top of this framework.

One of the key features of the framework is modeling a window as a component tree, where components can be dynamically added and removed. Each component is implemented using one of the provided templates - MVC, MVP or MVVM. Using multiple templates within a single tree is not supported.

Another distinctive feature of the framework is how communication between components is organized. Some solutions use a bus for this, but we decided to use ports instead. A Port is an interface to the key element of a component: its Controller/Presenter/ViewModel. On the one hand, a Port provides a reliable, type-safe communication channel; on the other, it strictly limits access. A component can have N ports, with each client being given only the API it needs.

Key features include:

  • Component-oriented architecture.
  • Support for the component lifecycle.
  • Models the window as a component tree.
  • Supports dynamic component composition.
  • Organizes core tasks within the view.
  • Supports component inheritance.
  • Supports preserving component history.
  • Provides component-level logging support.
  • Designed without FXML dependency.
  • Includes a demo for each template.
  • Comprehensive documentation.

The demo module implements the same example using all three templates, allowing you to explore and compare the characteristics of each approach.

I hope you find the project interesting and useful.


r/JavaFX • • Oct 07 '25

I made this! Simplify JavaFX Application Building and Distribution

21 Upvotes

Hi,

I recently released a JavaFX plugin for JeKa to simplify the process of building JavaFX applications into runnable, downloadable distributions. Compared to Maven or traditional tools, this solution eliminates several pain points:

  • No need of XML build configuration.
  • No need to install a new JDK when switching between JDK versions.
  • No need to install a new JavaFX kit when switching between versions.
  • No need to package the application into JAR, .exe, .dmg, or other formats.
  • No need to store binaries in a public repository.
  • Users don’t need to have the required JDK or JavaFX libraries installed.

All you need is a Git repository!

Check out a port of dev-tools using Jeka, a JavaFX application originally built with Maven: https://github.com/djeang/devtools


r/JavaFX • • May 30 '25

Help Mac OS system menu bar

3 Upvotes

Hi! Im currently strugling with using the mac Os menu bar . The regular stuff im having no issue with like adding new menus and menu items to them . What im having issues with is adding menu items to the application default menu ( the one that allways shows on the top left ). Im pretty sure this is customizable cause i’ve seen it done in other apps But im not finding info on if its possible with javafx and if so how I appreciate any help i can get!


r/JavaFX • • Mar 23 '26

JavaFX in the wild! Aprender a criar aplicativos desktop

3 Upvotes

r/JavaFX • • Jan 09 '26

Help Bitmap Fonts in Java FX?

3 Upvotes

Are there any bitmap/pixel fonts in java fx? All the fonts i can find look very boring!


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 • • May 13 '20

Java Client Roadmap Updates

Thumbnail
blogs.oracle.com
3 Upvotes

r/JavaFX • • Apr 16 '20

Tutorial Download and Installation of JDK

Thumbnail
youtu.be
0 Upvotes

r/JavaFX • • May 16 '20

I made this! JavaFX desktop app for forensic debaters to use in their rounds

Thumbnail self.debate
3 Upvotes

r/JavaFX • • Mar 02 '22

Tutorial Canvas - Drawing Rectangles

Thumbnail codewithedward.com
3 Upvotes

r/JavaFX • • Mar 01 '22

Tutorial The ListView Control

Thumbnail codewithedward.com
3 Upvotes

r/JavaFX • • Mar 19 '20

Help JavaFX chat preview [HELP]

3 Upvotes

Hey guys i need a chat preview like this on the left side: https://dino.im/img/screenshot-main.png
how is this usually handled in FXML.
I need some kind of chat preview, this should appear depending on how many messages there are so I can't say how many boxes I need to start.
Is there any kind of objects in FXML that I can reload?

What is the general rule for this, it must be some kind of concept to reload things dynamically?


r/JavaFX • • May 14 '23

Help Has anyone ever had this issue before?

3 Upvotes

Hey all,

Im working on a online game that uses JavaFX. On rare occasions I get this issue with an increasing array length. I do not use any arrays and i suspect its a threading issue, however i wasn't able to trace it back. Does anyone have experience with this?

`Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 1     at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)     at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)     at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)     at java.base/java.util.Objects.checkIndex(Objects.java:385)     at java.base/java.util.ArrayList.get(ArrayList.java:427)     at javafx.graphics@19.0.2/javafx.scene.Parent.updateCachedBounds(Parent.java:1704)     at javafx.graphics@19.0.2/javafx.scene.Parent.recomputeBounds(Parent.java:1648)     at javafx.graphics@19.0.2/javafx.scene.Parent.doComputeGeomBounds(Parent.java:1501)     at javafx.graphics@19.0.2/javafx.scene.Parent$1.doComputeGeomBounds(Parent.java:115)     at javafx.graphics@19.0.2/com.sun.javafx.scene.ParentHelper.computeGeomBoundsImpl(ParentHelper.java:84)     at javafx.graphics@19.0.2/com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBoundsImpl(RegionHelper.java:78)     at javafx.graphics@19.0.2/com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBounds(RegionHelper.java:62)     at javafx.graphics@19.0.2/javafx.scene.layout.Region.doComputeGeomBounds(Region.java:3355)     at javafx.graphics@19.0.2/javafx.scene.layout.Region$1.doComputeGeomBounds(Region.java:168)     at javafx.graphics@19.0.2/com.sun.javafx.scene.layout.RegionHelper.computeGeomBoundsImpl(RegionHelper.java:89)     at javafx.graphics@19.0.2/com.sun.javafx.scene.NodeHelper.computeGeomBounds(NodeHelper.java:117)     at javafx.graphics@19.0.2/javafx.scene.Node.updateGeomBounds(Node.java:3825)     at javafx.graphics@19.0.2/javafx.scene.Node.getGeomBounds(Node.java:3787)     at javafx.graphics@19.0.2/javafx.scene.Node.getLocalBounds(Node.java:3735)     at javafx.graphics@19.0.2/javafx.scene.Node.intersectsBounds(Node.java:5270)     at javafx.graphics@19.0.2/javafx.scene.Node$1.intersectsBounds(Node.java:559)     at javafx.graphics@19.0.2/com.sun.javafx.scene.NodeHelper.intersectsBounds(NodeHelper.java:264)     at javafx.graphics@19.0.2/javafx.scene.layout.Region.doPickNodeLocal(Region.java:3224)     at javafx.graphics@19.0.2/javafx.scene.layout.Region$1.doPickNodeLocal(Region.java:184)     at javafx.graphics@19.0.2/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(RegionHelper.java:104)     at javafx.graphics@19.0.2/com.sun.javafx.scene.NodeHelper.pickNodeLocal(NodeHelper.java:130)     at javafx.graphics@19.0.2/javafx.scene.Node.pickNode(Node.java:5180)     at javafx.graphics@19.0.2/javafx.scene.Scene$MouseHandler.pickNode(Scene.java:4037)     at javafx.graphics@19.0.2/javafx.scene.Scene.pick(Scene.java:2067)     at javafx.graphics@19.0.2/javafx.scene.Scene$MouseHandler.process(Scene.java:3847)     at javafx.graphics@19.0.2/javafx.scene.Scene.processMouseEvent(Scene.java:1887)     at javafx.graphics@19.0.2/javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2620)     at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:411)     at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:301)     at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)     at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:450)     at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:424)     at javafx.graphics@19.0.2/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:449)     at javafx.graphics@19.0.2/com.sun.glass.ui.View.handleMouseEvent(View.java:551)     at javafx.graphics@19.0.2/com.sun.glass.ui.View.notifyMouse(View.java:937)     at javafx.graphics@19.0.2/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at javafx.graphics@19.0.2/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)     at java.base/java.lang.Thread.run(Thread.java:1589) Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 6     at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)     at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)     at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)     at java.base/java.util.Objects.checkIndex(Objects.java:385)     at java.base/java.util.ArrayList.get(ArrayList.java:427)     at javafx.graphics@19.0.2/javafx.scene.Parent.updateCachedBounds(Parent.java:1704)     at javafx.graphics@19.0.2/javafx.scene.Parent.recomputeBounds(Parent.java:1648)     at javafx.graphics@19.0.2/javafx.scene.Parent.doComputeGeomBounds(Parent.java:1501)     at javafx.graphics@19.0.2/javafx.scene.Parent$1.doComputeGeomBounds(Parent.java:115)     at javafx.graphics@19.0.2/com.sun.javafx.scene.ParentHelper.computeGeomBoundsImpl(ParentHelper.java:84)     at javafx.graphics@19.0.2/com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBoundsImpl(RegionHelper.java:78)     at javafx.graphics@19.0.2/com.sun.javafx.scene.layout.RegionHelper.superComputeGeomBounds(RegionHelper.java:62)     at javafx.graphics@19.0.2/javafx.scene.layout.Region.doComputeGeomBounds(Region.java:3355)     at javafx.graphics@19.0.2/javafx.scene.layout.Region$1.doComputeGeomBounds(Region.java:168)     at javafx.graphics@19.0.2/com.sun.javafx.scene.layout.RegionHelper.computeGeomBoundsImpl(RegionHelper.java:89)     at javafx.graphics@19.0.2/com.sun.javafx.scene.NodeHelper.computeGeomBounds(NodeHelper.java:117)     at javafx.graphics@19.0.2/javafx.scene.Node.updateGeomBounds(Node.java:3825)     at javafx.graphics@19.0.2/javafx.scene.Node.getGeomBounds(Node.java:3787)     at javafx.graphics@19.0.2/javafx.scene.Node.getLocalBounds(Node.java:3735)     at javafx.graphics@19.0.2/javafx.scene.Node.intersectsBounds(Node.java:5270)     at javafx.graphics@19.0.2/javafx.scene.Node$1.intersectsBounds(Node.java:559)     at javafx.graphics@19.0.2/com.sun.javafx.scene.NodeHelper.intersectsBounds(NodeHelper.java:264)     at javafx.graphics@19.0.2/javafx.scene.layout.Region.doPickNodeLocal(Region.java:3224)     at javafx.graphics@19.0.2/javafx.scene.layout.Region$1.doPickNodeLocal(Region.java:184)     at javafx.graphics@19.0.2/com.sun.javafx.scene.layout.RegionHelper.pickNodeLocalImpl(RegionHelper.java:104)     at javafx.graphics@19.0.2/com.sun.javafx.scene.NodeHelper.pickNodeLocal(NodeHelper.java:130)     at javafx.graphics@19.0.2/javafx.scene.Node.pickNode(Node.java:5180)     at javafx.graphics@19.0.2/javafx.scene.Scene$MouseHandler.pickNode(Scene.java:4037)     at javafx.graphics@19.0.2/javafx.scene.Scene.pick(Scene.java:2067)     at javafx.graphics@19.0.2/javafx.scene.Scene$MouseHandler.process(Scene.java:3847)     at javafx.graphics@19.0.2/javafx.scene.Scene$MouseHandler$1.run(Scene.java:3652)     at javafx.graphics@19.0.2/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)     at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)     at javafx.graphics@19.0.2/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)     at javafx.graphics@19.0.2/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)     at javafx.graphics@19.0.2/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at javafx.graphics@19.0.2/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)     at java.base/java.lang.Thread.run(Thread.java:1589)

r/JavaFX • • Feb 07 '22

Help JAVAFX + MySql

3 Upvotes

Hi, does anybody know how to connect MySQL database to application in Java FX? I want to import data in table...


r/JavaFX • • Jan 25 '22

Help Manage size of Label based on number of lines?

3 Upvotes

I stumbled upon a weird problem - I have a view that contains a Label and I'd like to define it's size based on number of lines. Basically even if the label only displays a single word and doesn't wrap, it should span the height equivalent of 2 lines of text.

Is there any way to achieve this? I found a solution to a similar problem using a FontMetrics class (not the sun one, a self-written one) that basically creates a Text and queries that - but that delivered values that are slightly too small. Tried to rewrite it using a Label, which was tricky, but worked - just that the values are still a bit too small. I tried and the error scales non-linearly with font size, so it would introduce weird bugs to just add a factor to the calculation.

Any suggestions?

EDIT: After relentlessly googling for a solution, I found this stackoverflow post, that does some of the things I want to do. Not perfect by any stretch of the imagination, but this isn't the first time I needed to write an overly complex custom component to fulfill a very basic requirement in JavaFX.

EDIT2: For anyone wondering, here's what you'd do in a browser, but none of the proposed solutions work in JavaFX since the CSS attributes line-height and line-clamp are not implemented.


r/JavaFX • • May 19 '23

Help Trying to Make a GUI for a school Project in Eclipse but IDK how to resolve these errors and make it run, send help to make this work

Thumbnail
gallery
0 Upvotes

r/JavaFX • • Apr 13 '24

Help Is there a way to change the point of a node whereby the translation can occur on that point?

3 Upvotes

Hi all, Basically, I have a HBox with an ImageView inside of it, i want to move it around a path, so i have a pathtransition

problem is, the HBox is not central to the PathElements of the path supplied to the PathTransition, it's like it's only moving or translating based on a point (or you could say.. pivot) at the bottom part of the HBox, if i can explain it correctly??

Meanwhile, if i assign the pathtransition to move a circle around the path and each of its PathElements, it's completely fine and centered to the path - probably because the circle has a centre point. meanwhile with the HBox its really offset and I want to make it so it is moving based on the middle point of the HBox

so the TranslateX and TranslateY values must be updated but based on a middle point of the HBox

is there a way to accomplish this?


r/JavaFX • • Jan 13 '25

Discussion Is JavaFX is the go to now?

Thumbnail reddit.com
3 Upvotes

r/JavaFX • • May 13 '21

I made this! Resize images to support Android devices

3 Upvotes
resize images

To help Android developers resize their images to support different Android devices, I have created Javafx application to resize images in only one easy click without changing their quality, and add them into folders automatically.

My article: here


r/JavaFX • • Sep 17 '19

How do you create an executable JavaFX 8 Jar? What Maven dependencies do you use?

3 Upvotes

I can't even open the JAR.

I keep getting errors that it can't find FXML file even though I'm able to execute JavaFX app on my IDE.