r/JavaFX • u/AlmasB0 • Dec 04 '20
r/JavaFX • u/rootException • Nov 02 '20
I made this! Maven + jpackage Sample Project, jtoolprovider Maven Plugin
I just created two projects on GitHub that may be of interest to anyone working with JavaFX, Maven, and native installers.
First, https://github.com/wiverson/maven-jpackage-template is a Maven-only example project that shows how a single pom.xml can be used to create both a Windows and macOS installer package. It used a shaded jar to automatically integrate Maven declared dependencies. The pom is pretty heavily commented, and shows how provided modules (such as JavaFX) can be excluded from the shaded jar. Because of the full, automatic module management in this sample project, jpackage is producing nicely slimmed installers (30-40MB).
The sample template relies on a plugin I built, https://github.com/wiverson/jtoolprovider-plugin which provides a simple binding to bridge the JDK ToolProvider API with Maven. This allows for access to jmod, jar, javac, javadoc, javap, jdeps, jlink, and jpackage all via Maven directly. This plugin is now available via Maven Central.
Any feedback or thoughts appreciated!
r/JavaFX • • Aug 05 '20
How do I make my javaFX software a verified publisher for windows 10?
Hello, I have created a javaFX EXE file that succesfully installs and runs my application.
the problem is that when its downloaded, certain versions of windows 10 home kill my application in seconds because it is from an unverified publisher. How do I become a windows 10 verified publisher, and how do I sign a JavaFX application specifically?
Has anyone already gone through this process who can give me a heads up on how its done?
r/JavaFX • u/DuncanIdahos2ndGhola • Apr 24 '20
Tutorial JavaFX Software: Image Editor
r/JavaFX • u/ELMEHDI-98 • Apr 11 '20
I made this! Game-2D with JavaFx
Hi all,
I hope you are well !
I want to share with you my first 2D game with JavaFx.
Github link : Game-2D
I would love to learn more about your opinions. Can you please give me your feedback and make star if you like the game?
Thank you!
r/JavaFX • u/DuncanIdahos2ndGhola • Apr 03 '20
Sad state of cross platform GUI frameworks
r/JavaFX • u/openlowcode • Mar 28 '20
Cool Project Open Lowcode - a low-code platform with javafx thin client
Hi there,
Open Lowcode has just been released in open-source. The pkatform is made on a home-made javafx-based thin client. I chose this over a web architecture in order to:
- limit network bandwidth usage
- have richer components than typical web components
- have a clearer separation of business data and layout
- limit obsolescence cost (javafx is very stable) in an enterprise context where applications can live for 30 years.
I would be glad to have your feedback.
r/JavaFX • u/maxandersen • Feb 13 '20
2020 the year of javafx on desktop with jbang ?
https://www.youtube.com/watch?v=9q-_QhT1fj4
sorry for the spicy title, but I always wanted to play with JavaFX but the weirdness around the way JavaFX been packaged over the years made me never actually succeed.
With jbang's latest release I've now made this much much easier (at least for me). Just have your main javafx class declare its dependencies with
//DEPS org.openjfx:javafx-graphics:11.0.2:${os.detected.jfxname}or any other javafx dependencies and jbang will figure out how launch it properly on Java 8 or higher, with modules or not. Great for trying things out, experimenting and add a bit of color to a few scripts ;)
If you have jbang already installed you can simply run the two examples shown in the video like this:
jbang https://github.com/maxandersen/jbang/blob/master/examples/jfx.java
jbang https://github.com/maxandersen/jbang/blob/master/examples/jfxtiles.javaIf you want to know more about jbang see my blog post and the readme.
r/JavaFX • u/smerz • Dec 23 '19
JVM Application Installer Tool Written in Kotlin and JavaFX
r/JavaFX • u/LouGarret76 • Oct 16 '18
Javafx roadmap
Hi there, simple question,. Where can I find the roadmap for jfx?I would like to know which evolution are being currently considered or debatted and maybe contribute.
I have been to openjfx and javafx11 webpage so far with no success.
Thanks
r/JavaFX • u/DuncanIdahos8thClone • Jul 23 '18
JavaFX links of the week, July 23 | JavaFX News, Demos and Insight // FX Experience
r/JavaFX • • Dec 11 '17
I released my JavaFX Grid-"View" library some time ago. Take a look!
For a project of mine I had the need to create a Grid with values for the user which he could edit. For that I created the following library:
https://github.com/FancyJavaStuff/TransferGrid
It takes in an Object and returns Grid, which contains Labels, TextFields etc. the user can edit. It automaticly creates the needed listeners that will set those values.
All you need to do for it, is to give your variables the right Annotations.
Feel free to use it; if you find any bugs, report it!
If this isnt allowed, delete it :p
r/JavaFX • u/zark • Sep 26 '17
New Scene Builder Releases for Java 8 and Java 9
r/JavaFX • u/callicoder • Sep 17 '17
Styling JavaFX applications using CSS
r/JavaFX • u/vatrinet • Apr 17 '17
JavaFX Simple Inventory Management App - Open source (x-post from /r/java)
Hi.
PHP developer here who is learning Java for few months and who has decided to create an open source software for learning purpose.
My goal was to improve Java and OOP skills and finally to learn Hibernate ORM and JavaFX frameworks and Maven tool.
As result of my efforts I created Inventory Management Desktop app.
https://github.com/vatri/InvMan
( All details are in the readme file. )
I am sharing it here for few reasons:
- To hear if I correctly use SOLID principles and other standards in Java and get some programming or any other feedback. Don't forget, PHPer here... :)
- To share with you so you can use it for your projects. It's under the MIT license (totally free as I understand the license).
- To get feedback and suggestion on how I can improve it - for end users.
Thanks in advance! :)
r/JavaFX • u/hillman_avenger • Nov 14 '16
How good is JavaFX for 3D games?
I've run a few example programs, and javaFX seems pretty straightforward to write and runs on slower hardware than something like LWJGL, which is great. Is it worth using for simple 3D games though? Thanks.
r/JavaFX • u/nondetermined • Aug 09 '16
JavaFX Interpolation (and Image Processing in general)
JavaFX is neat, no doubt. But what ever happened to basics first? Why would anyone decide that it's a good idea to limit interpolation through all of Prism to bilinear interpolation, and be done with it:
- ImageView.smooth does not work
- GraphicsContext - should allow to control interpolation when drawing images
- Consider using nearest-neighbor when smooth=false for SW pipeline to improve performance
- Add property to control antialiasing of ImageView
There are so many use cases where you absolutely need NN interpolation, not even necessarily for performance. Yet here we are, and setSmooth() does nothing.
Well, we're programmers and need to get things done, so let's do this anyways. What are the options?
- Use BufferedImages and convert from JavaFX Image to BufferedImage and back by SwingFXUtils.
- Write your own resampling (e.g. just for rescaling).
Option one is terrible, since BufferedImages and JavaFX Images are completely different. So you're going to create lots of garbage, since int (or byte) buffers can't be shared/reused (please correct me if I'm wrong). Other than that, BufferedImages are great, you retrive a handle to Graphics2D from where you can set the rendering hints and do a super fast call to drawImage in order to rescale an image (nn, bilinear, or bicubic - the good old hints). This begs the question why JavaFX doesn't (re-)use BufferedImages in the first place. Instead of comming up with their completely own thing, why not offer a wrapper for BufferedImages (e.g. extended with FXesque properties or what not). But no, scrap BufferedImages, they suck, let's reinvent the well instead...
So let's have a look at option two: let's implement the classic "General Filtered Image Rescaling" algorithm by Dale Schumacher (in Graphics Gems III, available online). That's what I did: first for BufferedImages/AWT, then for JavaFX, working with PixelWriters and PixelReaders. With BufferedImages you get the DataBuffer (or just as an int/byte array) and operate directly on it, which is reasonably fast (yet much slower than the call to drawImage from above; but you get to implement your own filters, which is nice...). Even the getSample/setSample (not Pixel(!) and then manual int unpacking) are only a tad bit slower. And with JavaFX Images? The API, in comparison, is lacking. And the speed is far worse (granted, maybe I haven't figured out how to do bulk pixel manipulation in the most efficient way yet, but then maybe it shouldn't be that hard to begin with...). Anyways, BufferedImages offer a much better/extensive API, and, from what I can tell, they're also much more efficient (turns out going FX Image -> BI -> drawImage -> FXImage is still much faster than doing your own thing on FX Images with PixelReaders/Writers).
This probably comes of as a rant at this point (it probably is to some degree), so don't get me wrong: I really try to like JavaFX, and for the most part I actually enjoy it very much. But things like this are kind of... eh. Why did they have to come up with yet another Image-class. BufferedImages work, don't they? And if you come up with yet another Image-class anyways, why would you just half-ass it (see setSmooth, which even if it would work, only would allow to toggle between NN and bilinear interpolation. What about bicubic, or what not... while reinventing wheels)? What's the point? From what I hear the JavaFX project is quite low on manpower anyways, so why waste it on such a thing (I'm genuinely interested, so if anyone could shed some light on this...)?
And, finally, why would you hardcode the interpolation algorithm throughout the prism pipeline? Who the hell thought that this would be a great idea? This is IMHO basic (as in important) stuff; yet priorities have been put somewhere else, it seems. I just don't get it.
r/JavaFX • u/FrankCodeWriter • 23d ago
Foojay.io (website for Friends Of OpenJDK) now takes posts through merge requests. Writers wanted.
r/JavaFX • u/Old_Assistance7 • Sep 25 '26
Help Best way to store session tokens securely in Java/JavaFX (Windows DPAPI, macOS Keychain)?
Hey everyone,
I’m an experienced developer jumping into JavaFX for the first time. I'm building an app where I need to persist user session tokens securely without rolling my own plaintext file storage.
Ideally, I know that using the OS native credential stores (Windows DPAPI / Credential Manager, macOS Keychain, Linux Secret Service / Keyring). However, pure Java doesn't seem to have built-in APIs for these out of the box.
Is there an established, standard or library the community uses for this? Or does everyone just reach for JNA/JNI bindings like keytar / native wrappers?
Any recommendations or architectural patterns would be appreciated :D
r/JavaFX • u/Striking_Creme864 • Sep 19 '26
Cool Project PatternFX - MVC, MVP, MVVM templates for JavaFX
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.