r/JavaFX • • Jun 10 '23

Flappy Bird

22 Upvotes

Estou a tentar recriar o Flappy Bird, usando somente Java😅


r/JavaFX • • Jul 23 '22

I made this! Animated: Flutter-like implicit animations for JavaFX

22 Upvotes

animated is a library that makes your life easier when dealing with animations in your JavaFX programs by removing boilerplate code.

Inspired by Flutter, you just have to choose the kind of animation to bind to any object's property, so that its changes will be automagically animated, with everything else getting cared of under the hood. Here is a practical example:

Animated<Double> animated = new Animated<>(child, PropertyWrapper.of(child.opacityProperty()));
root.getChildren().add(animated);

// Later...
child.setOpacity(0.5); // Plays the transition

Along with this, animated features animated switchers, animated containers and much more! (Some rely on the AnimateFX library)

More details and GIFs in the readme below, I'd love to hear your opinions :) https://github.com/iamgio/animated


r/JavaFX • • Apr 27 '22

I made this! I made Sudoku Application in JavaFX

22 Upvotes

Hoping the community would give some feedback. It generates easy-level sudokus and has a dark theme as well.

https://github.com/SatyaSnehith/Sudoku

Thank you.


r/JavaFX • • Mar 19 '22

Release JavaFX 18 Highlights

Thumbnail openjfx.io
22 Upvotes

r/JavaFX • • Mar 09 '22

I made this! Custom window decorations using Swing + FlatLaf + JavaFX

22 Upvotes

As you might know, it is possible to add JavaFX content into a Swing application, using JFXPanel component. And I recently found out that FlatLaf, a Swing look and feel, supports custom window decorations on Windows 10+. So, some tinkering and messy css later, I got this: Screenshot

Every control besides the window frame and window controls are JavaFX components, including the tab headers. And as you can see in the image, since the window controls are native, they even support extra Windows 11 goodies :)


r/JavaFX • • Jan 10 '22

Tutorial All About Buttons!

22 Upvotes

I've started writing some articles about the elements of JavaFX. The first one is up on my website:

https://www.pragmaticcoding.ca/javafx/elements/buttons

And it's called "All About Buttons".

I've spent the last 8 years creating business applications in JavaFX, and I've come to appreciate the Reactive nature of the library. This is not something you see talked about too much on the Web, and not something that you ever see explained in any tutorials or on StackOverflow.

So I thought I might take a stab at creating a reference resource of explanatory articles about all of the different components of JavaFX - focusing on the Reactive nature where possible. So, of course, I start with the least Reactive aspect of all - Buttons and Events. Buttons seemed like a nice easy place to start, though.

I'm not trying to duplicate the information in the JavaDocs, but to provide practical information that might be less apparent when you just read the JavaDocs, along with practical advice and examples.

I'm hoping that over time I'll have enough enthusiasm to cover lots of topics and that it's useful enough to become a "go to" site for people trying to figure out JavaFX. We'll see.

Anyways, if you have time then take a look and let me know what you think. I'm interested in any feedback about anything, from the layout to the font to content to the style of writing. My goal is to create something that people actually want to use, not to stroke my ego.

"All About Events" is partially written now. After that I'm thinking that, "All About Labels and Labeled" should be next, as "Labeled" is the key visual class that "Button" extends. Then the three articles together would say just about all that you'd need to know about how to use Button.


r/JavaFX • • Oct 24 '26

Discussion JavaFX and full Wayland support, when?

21 Upvotes

It's unfortunate that Flatpak is phasing out apps that use both X11 and Wayland.

Since JavaFX doesn't fully support Wayland yet, most JavaFX applications risk being removed from Flathub or having their updates halted.

The way I see it, the lack of Wayland support will spell total failure for JavaFX in the short term.

Oracle, are you interested in adding official support for Wayland or not?


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 • • Dec 15 '24

I made this! Java Rabbit - A Fun Project Made with JavaFX 🐇🎨

21 Upvotes

I made a fun project called Java Rabbit using JavaFX. You can draw on a canvas by typing simple commands. Just for fun!

Check it out on GitHub:
🔗 https://github.com/heshanthenura/JavaRabbit


r/JavaFX • • Mar 21 '23

Release JavaFX 20 Highlights

Thumbnail openjfx.io
21 Upvotes

r/JavaFX • • Oct 11 '22

Release Updated JavaFX + GitHub Actions + jpackage template

21 Upvotes

Just updated my JavaFX & Swing template for generating nice native installers for macOS, Windows and Ubuntu.

New single GitHub Action matrix script generates all the installers w/nice human-friendly, matching version numbers. Also bug fixes. 😁

https://github.com/wiverson/maven-jpackage-template


r/JavaFX • • Oct 09 '22

Tutorial Flags for JavaFX application

Thumbnail abhinay.xyz
21 Upvotes

r/JavaFX • • Oct 07 '22

JavaFX in the wild! JavaFX links of the week October 7th as posted on jfx-central.com

21 Upvotes

See https://www.jfx-central.com/


r/JavaFX • • Mar 02 '22

JavaFX in the wild! Visualizing Robots with JavaFX

Thumbnail
youtube.com
21 Upvotes

r/JavaFX • • Dec 10 '21

I made this! Resize me - Easily compress and resize images

21 Upvotes

r/JavaFX • • May 11 '21

JavaFX tool for managing maven projects

21 Upvotes

Hi,

I have something like 200 maven projects that I have made in the past one-and-a-half decade. I usually like to maintain small pieces of code which is modular. It gives me a headache sometimes to find what I am looking for which I might have worked on several years ago. So I made this :

Things it can do

  • It can search a folder (my code folder) for all maven projects and list them as per folder hierarchy

  • There is a search filter with an auto-completion

  • Open the maven project directory, or open the project in IntelliJ or Netbeans

  • Edit POM in one click

  • Generate a string `<dependency><artifactId> .... <` and put it in the clipboard so a given maven project can be imported (added to dependency) in some other project easily.

  • Open command-line in the location where the maven project

Things I want to add to this

  • Easily create new maven projects

  • Easily create new git repositories for them on Github

  • Easily push them to maven central, by adding the necessary elements in the maven

  • All easily doable from the UI

  • If a certain project requires an olden version of JVM, open terminal with that version of java set in the path (saves a few keystrokes)

  • Auto-generate maven POM to add things like (this might be a separate subproject, or I might make a command-line build tool using JBang ... just thinking) -

    • Maven shade plugin

    • JavaFX

    • Graal VM native support

    • All those things which you need to put in the POM for it to be releasable in maven central.

    • JSweet support

I do not have a public release, it is a pet project as of now.


r/JavaFX • • Sep 10 '20

A JavaFX based vector editor component

Thumbnail
github.com
21 Upvotes

r/JavaFX • • Jul 31 '20

I made this! A bit of un update on my fluent ui library -https://github.com/Ivan-Kalatchev/FluentFX - just made a demo application with a navigation view *its still in progress

Post image
21 Upvotes

r/JavaFX • • Jul 10 '20

My first article for Oracle Java Magazine got published yesterday: "Getting started with JavaFX on Raspberry Pi"

Thumbnail self.learnjava
21 Upvotes

r/JavaFX • • Jul 01 '20

Zephyria: RPG built with FXGL engine

Thumbnail
youtu.be
21 Upvotes

r/JavaFX • • Feb 10 '20

Building native, AOT compiled, real-world JavaFX applications

Thumbnail
github.com
21 Upvotes

r/JavaFX • • Jul 26 '19

Milkman: An Extensible Alternative to Postman in JavaFX

Thumbnail
github.com
21 Upvotes

r/JavaFX • • 10d ago

Discussion Writing the UI programmatically or through FXML?

20 Upvotes

Hi there! i'm a learning dev trying to create a simple baker's percentage formula calculator, as a desktop app written in Java using JavaFX as the frontend. I've been suggested to use it after wanting something prettier and more flexible than Swing.

However, following outdated tutorials or so many different ways to make a project with JavaFX has me very confused. As far as i understand it, i can both create the entire interface through an FXML file, namely through Scene Builder, and then through a Controller class, write the enum @FXML and create an object named the fxid of a given component, to handle events of them through methods.

Initially i thought this would be easier to do compared to designing the UI line by line in Java, but now i'm a bit troubled at how to manage events that will create new graphic elements. For example, i want to set up a container like a GridPane or a VBox with some table inside, to show the ingredient name, as well as spinners to change it's baker's percentage or it's weight used the recipe. I can mockup this really nicely in Scene Builder, adding rounded edges and pretty shadows to a wrapper container, but i do not know how to make an "Add ingredient" button, on the interface level. The method should create a new row and create spinners and labels on the correct format. I'm kind of confused at the following: do i have to manually specify what kind of css to use, in which row or position should the different elements be aligned, or can i use the padding and aligment i've already set up in Scene Builder?

Right now my thought process is, that if i have to write in Java the specifics of a button or element changing upon the user's input, i might as well just write it all on Java. I also checked the AtlantaFX Sampler app and while the source code seems really easy to understand, it's all written programmatically, and i'm confused at how to use the controls through Scene Builder...Scene Builder seems really cool to define a layout, but i'm a bit confused at the whole Controller connecting the .fxml with actual objects in Java.

If any of you could guide me a bit on some good tutorials, i'd be glad! I've been following a mix of Youtube videos, Oracle documentation, the JavaFX17 book by Kishori Sharan, among various resources. I've found a lot of help through the many guides i've followed, but also many more questions, like how some recommend different ways to set up the main Applicaton, Launc and Controller classes, and of course a lot of suggestions about using Scene Builder, yet every tutorial seems to write the UI programatically. How do you do your apps, and what would you suggest to a total novice?

Thanks for reading!


r/JavaFX • • 26d ago

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).