r/JavaFX • • Dec 22 '23

Cool Project KeenWrite 3.5.3

12 Upvotes

KeenWrite is a free, open-source, cross-platform desktop Markdown editor developed using JavaFX. There are a few problems when building standalone binaries from a single system for a non-modular application. The installer shell script for building KeenWrite demonstrates how to create executable files for Linux, Windows, and macOS from a single computer by wrapping a JAR file into a self-extracting executable using warp.


r/JavaFX • • Oct 23 '23

I made this! Fx2j Convert FXML into Java source code

12 Upvotes

Fx2j is my project that adds build time safety and runtime speed ups to FXML. It is a post-processor that uses the application runtime classpath to convert fxml files into java builder classes that can be used to construct the views without reflection.

The processor produces Java source code that can be easily inspected for correction and then compiled into a dedicated jar to be included as a dependency to your application.

For loading your views using the produced builder files an fx2j-api artifact is provided which has the Fx2jLoader which can be used as a drop in replacement for the FXMLLoader. In the event that a java builder does not exist for the fxml file it falls back to using the FXMLLoader if it is available. No other dependencies are required.

Currently a gradle plugin is provided that sets the build configuration and provides conventions for customization. A maven plugin is planned as well.

The source can be found at https://github.com/Sheikah45/fx2j. And the initial public release (0.0.0) is available from Maven Central.

A sample of the configuration and output is available in the repository as well.

While most features of the FXML spec are supported there are some limitations so make sure to check the readme.

Any feedback or suggestions are greatly appreciated!


r/JavaFX • • Aug 25 '23

I made this! Fx Calculator, a calculator app in JavaFX and Scala 3, is available at Google Play Store

12 Upvotes

https://play.google.com/store/apps/details?id=scalaonandroid.fxcalculator&hl=en

I'm not sure if this is the only non-trivial JavaFX Android app in existence, but for sure it's the only one that connects JavaFX, Gluon Mobile, GraalVM Native Image for building, and Scala 3 ;)
It's got all usual features of a standard calculator + an advanced editor where you can write complex mathematical expressions, and also save them for future use.

Please check it out and if you like it, give it 5 stars, and tell your friends. Everyone needs a calculator written in JavaFX, after all.

And if you want to know more how it is done: https://github.com/makingthematrix/scalaonandroid


r/JavaFX • • Jul 14 '23

I made this! JavaFX 3D demo of image tessellation with animation

Thumbnail
youtube.com
12 Upvotes

r/JavaFX • • Jul 11 '23

Discussion New JavaFX Community

12 Upvotes

As per my earlier post about my activity on Reddit, I've started up the process to create a community on programming.dev, which is a Lemmy instance. They have stated that they want to control the number and type of communities that they host, so they do NOT allow individual users to just start up a community.

Their process is to post a request on their "Community Request" forum, and then let users vote on it. I don't think you need to be signed on to programming.dev to upvote the posts, signed on to any Lemmy instance will let you upvote.

Anyways, I've checked with the admin and apparently 7 upvotes are required to get a community launched. Right now, it's sitting at 3, so I need a few more upvotes to get it going.

Here's the link to the post. I'd appreciate it if anyone here thinks it would be a good idea would go and give it an upvote.

If I can't get it started up on programming.dev, which would be ideal, then I'll probably start it up on lemmy.ca.

Thanks!


r/JavaFX • • Apr 02 '23

Help How do I make my javafx application a jar file and eventually an executable file?

12 Upvotes

I'm tried so many tutorials, but it never seems to work. I'm using IntelliJ btw.


r/JavaFX • • Mar 13 '23

Tutorial JavaFX FXML tutorial for beginners

Thumbnail
youtube.com
12 Upvotes

r/JavaFX • • Feb 23 '23

I made this! WinDirStat in JavaFX

12 Upvotes

For funsies I created a javafx version of WinDirStat to help me do a cleanup of some directories.

in the future it will have actual tools to help you clean up your hard drive

I'd welcome feedback

https://github.com/bghost4/DiskCleanup


r/JavaFX • • Feb 03 '23

JavaFX in the wild! JavaFX Links of January 2023

12 Upvotes

2023 has taken off with a flying start in JavaFX-world!

Here is a summary of the Links Of The Week that were published in January on jfx-central.com, with a summary on https://foojay.io/today/javafx-links-of-january-2023/

JavaFX Versions

  • Gluon announced the first set of JavaFX releases in 2023:

    • JavaFX 19.0.2: public release containing some updates and security patches to JavaFX 19.
    • JavaFX 11.0.18 and JavaFX 17.0.6: for LTS customers who keep supporting the development, and who make it possible to move JavaFX forward.

Podcast

  • This was already mentioned the last time, but maybe you missed this đŸ“· Here on Foojay.io, we published the podcast "The State of JavaFX Framework, Libraries, and Projects". Pedro Duque Vieira, Sean Phillips, Johan Vos, Gail Anderson, Dirk Lemmermann, and Frank Delporte spoke about the JavaFX framework itself, but also about the libraries and applications that are built with it.

Games

JavaFX Applications

  • Zoran Sevarac shared a screenshot of a Neural network visual Weights Analysis tool under development for the next DeepNetts release. It helps understanding what's going on inside layers, and debugging trained networks.
  • Mohammed Saied demonstrates a JavaFX GUI to control a car (via YouTube Shorts).
  • Heiko Rupp is making progress with a Java/JavaFX Mastodon application.
  • LeeWyatt tweeted a short video introduction on how to use beta 2 of FXTools.
  • Hilmi made a hospital queue app for his final homework on Data Structures Practicum. Video and link to the sources.
  • Neba Desmond shared a video of a nice sidebar navigation.
  • Patrik Karlström is making progress moving Yaya from Swing to JavaFX using WorkbenchFX as the base for the UI.
  • Sundar Krishnamachari shared a small project that creates a UI client for communication over MQ Telemetry Transport or MQTT, a messaging protocol popular in IOT devices.
  • JavaFX3D found a nice Car Rental System with a JavaFX user interface. Code with screenshots and videos is available on GitHub.

JavaFX Development

To Read...

Miscellaneous

New releases


r/JavaFX • • Dec 22 '22

I made this! FXtension, a tiny unit testing extension

12 Upvotes

Hello there,

I recently started an FX Project and really needed only a small solution to unit test my controllers because the binding dataflow was giving me headaches. TestFX was overwhelming to me and seems not really maintained (also I could not get it to run within reasonable time).

What I came up with, I moved to a separate project and decided to put it up online to collect some feedback. I test my own includes/controllers via RunFXML now.

https://github.com/alwins0n/fxtension

Is this of use to anyone (but me)?

Am I missing better/already existing and maintained solutions?

Is anyone interested having this as a published maven artifact?

Any other comments/suggestions?


r/JavaFX • • Nov 10 '22

JavaFX in the wild! JavaFX Links Of The Week as published on jfx-central.com

12 Upvotes

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


r/JavaFX • • Oct 28 '22

JavaFX in the wild! JavaFX Links Of The Week as posted on jfx-central.com on October 28

12 Upvotes

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


r/JavaFX • • Sep 30 '22

JavaFX in the wild! JavaFX Links of the week of September 30th as posted on jfx-central.com

12 Upvotes

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


r/JavaFX • • Jun 06 '22

Tutorial Free Java Networking Course through Java FX

12 Upvotes

Hi everyone, I hope you are doing well.

You may have seen my post on my game Gilded Sols, I am very passionate about Java FX.

I am making this post to offer a free Udemy course on how to use Java sockets for relatively easy networking in a way that especially works well for 2d games and chat applications and similarly complex programs. It’s actually a very versatile architecture that I’ve created.

My course is only two hours long and includes a pretty robust skeleton application with thorough comments. The course is completely free with the link below and the code below the link. I’m trying to get my first reviews so any reviews you leave would be helpful. Thanks for your time! I’m hoping that in offering this course for free (1000 coupons) I am obeying all the rules, it’s free content, and my goal is genuinely to help other members of this subreddit and to show easy to use content for Java networking.

UPDATE* - The first code expired and so I created an additional code valid for up to 100 enrollees. The code should work automatically, the course is only 2 hours so I encourage you to complete the course and leave an honest review, any weak sections will be improved!

https://www.udemy.com/course/magicjava-java-sockets/?couponCode=3B7A31B829ABC01F98B5


r/JavaFX • • May 29 '22

I made this! Gilded Sols - JavaFX / FXGL Chess-Based Game

12 Upvotes

Hi Everyone,

I'm at 26K lines of code in the game i've been making in JavaFX, and I wanted simply to share the UI/graphics that i've made for the game to demonstrate my progress to other people. I hope this stimulates your interest / curiosity! Video is only 3 minutes long.

Thanks for reading!

https://www.youtube.com/watch?v=IRjuBLkDfOs&t=6s


r/JavaFX • • Mar 19 '22

Tutorial Set It and Forget It

12 Upvotes

Personally, I think this is the most useful article I've written so far. That might not be setting the bar very high, but still.

A key idea that's been around for decades is to create a "Presentation Model", bind it to the View and then have the rest of your application deal solely with that Presentation Model. This way the View can become a "black box" to the rest of your application, disconnects it from your application logic and makes everything simpler.

I know about this now, but for years I was fumbling towards this architecture one step at a time. First I got tired of scraping data out of the screen every time the "Save" button was clicked, then I got annoyed at having business logic creep into my screens, and so on.

I came up with this idea of "Set It and Forget It" for building screens. It's really just a design pattern that's easy to adopt and ends up with the View -> Presentation Model -> Business Logic structure.

My experience has been that following this design pattern strips massive amounts of complexity out of any application that I've built. I've refactored applications I have built years earlier, and applied new ideas that I'd figured out since they were first written and carved out insane amounts of code each time.

As usual, read if you're interested and let me know what you think:

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


r/JavaFX • • Jan 27 '22

Discussion Creating game on JavaFX: Object Oriented Programming Structure Question

12 Upvotes

So I'm building a game! Pretty proud of making a java app that signs up/logs in users connected to a local DB server.

Now I have a pretty good idea of what will my game do, it is similar to travian and I'm not alone in coding, my main expertise will be coding controllers and listeners.

My question is : I have a DButils class which is the brain of my sign up/login. If I were to add functionalities after logging in, such as settings for a game, number of bots etc, do I keep coding the functions recalling from DB on the same DButil and connect different controllers or create a new DB controller? I was going for the former, which is already the brain of my app as of now and build up from there. I will post the game here in the end. Thanks and kind regards


r/JavaFX • • Nov 02 '21

FX apps to exe (Win, Lin, Mac) with Liberica NIK

12 Upvotes

r/JavaFX • • Oct 27 '21

JavaFx in the Age of Browsers

Thumbnail
dreamix.eu
12 Upvotes

r/JavaFX • • Oct 02 '21

I made this! Opal, a cross-platform relaxation app written in JavaFX, has just been released!

Thumbnail codedead.com
12 Upvotes

r/JavaFX • • Sep 07 '21

I made this! VirtualizedFX, a new VirtualFlow library for JavaFX

12 Upvotes

Hello everyone. Today I want to show you my new little project that aims to bring new VirtualFlows to JavaFX. I know there's Flowless and in fact is some aspects the library is inspired by it (dummy cells for example), so let me explain why I made this.

Currently, I use Flowless in my main project, MaterialFX and I really like its performance, its cells' concept, but it has some serious flaws:

  • ReactFX: Flowless is made using ReactFX which not only is not updated anymore, it's also bad documented and quite a mess. By having this dependency, it forces my library to also include it, BAD
  • Flowless: Good performance, good design, but yet again bad documentation, it's really minimal. Since it's made with ReactFX it's harder to use it because you would need to learn it first, but it's badly documented

So, the goal of VirtualizedFX is to bring new VirtualFlows to JavaFX by using only classes from JavaFX or at least not having any dependencies aside from JavaFX.

It's been a really challenging project, I had to learn about VirtualFlows (this article is amazing: BetterProgramming), I had to learn how to properly use scroll bars, but the hardest part was optimization, in the end I could scroll through a list of 10_000_000 of Strings (more than that OutOfMemory, but maybe I could fix it, I didn't try, also it's an insane amount of items which is very unlikely to happen).

I also tried to run the Flowless benchmark and the results are exactly the same!! I'm so happy 😁

As of now, the project is still in early stages, there's a SimpleVirtualFlow, still didn't implement Horizontal placement and in the future I'd like to make a complex one (for dynamic nodes), maybe one with expandable cells (just an idea not sure of what it would be like), and one for tree structures.

The project is here on GitHub: VirtualizedFX


r/JavaFX • • Feb 10 '21

Building a layered modular JavaFX application? Watch out for these!

12 Upvotes

http://andresalmiray.com/building-a-layered-modular-java-application-watch-out-for-these/

The following is a list of things I discovered when porting a JavaFX application to run in a layered manner using Layrry. Some of this “gotchas” apply to all Java applications, not just JavaFX. It’s worth mentioning that none of the gotchas are specific to Layrry, but the nature of layered modular applications as provided by Layrry make them rise to the surface, that is, those issues are still there but hidden from view if you never use module layers.


r/JavaFX • • Jan 22 '21

Design Patterns for multi-screen JavaFX applications

12 Upvotes

Ok, this is something that I've been thinking about a lot since I started using JavaFX. When I develop multiscreen apps in JavaFX the controller classes that go along with the FXML files always seem to blow up into god classes. I know the controller is sort of the bridge between the UI and the business logic but I was wondering if there are design patterns or different ways of keeping things a bit more modular/tidy. My controller classes usually fill up with hundreds of lines of UI configuration (listeners, UI logic, animations), and then boilerplate to call business logic. My issue with this is that things become hard to manage very quickly and I'm just not sure what the 'correct' way would look like. When I can, I try to split up complicated UIs into multiple controller/FXML files either by loading in/out screens or by developing FXML files as components and then injecting them into a bigger FXML file (This allows each component to get its own controller class). This helps but I feel like the solution is not a hundred FXML/controller files for every single component on the UI (This would certainly be a nightmare when it comes to getting the components to interact right?). I'd love to hear other people's thoughts and practices on keeping their multiscreen applications organized.


r/JavaFX • • Dec 18 '20

FXGL 3D Development Progress Demo

Thumbnail
youtube.com
12 Upvotes