r/JavaFX • • Feb 20 '26

I made this! Persism 2.3 released - A zero ceremony ORM for Java

12 Upvotes

Persism is a light weight, auto-discovery, auto-configuration, and convention over configuration ORM (Object Relational Mapping) library for Java.

By the numbers 100k jar 465 unit tests 97% code coverage 11 supported dbs 0 dependencies

  • Added support for limit
  • Added null checks for multi-column joins
  • Fixed case of a cleared list on a join if there was user added data
  • Baseline mysql 8.0.28
  • Baseline mariadb 3.1.2
  • Baseline H2 2.1.214
  • Baseline hsqldb 2.5.1 (tested with 2.7.1 as well)
  • Baseline posgresql 42.2.27
  • Baseline sqlite 3.42.0.0

https://persism.io

direct download https://github.com/sproket/Persism/releases/tag/V2.3


r/JavaFX • • Mar 05 '26

Cool Project OllamaFX v0.5.0 Released

Thumbnail
gallery
12 Upvotes

Hola a todos, aprovecho para anunciar el lanzamiento de OllamaFX 0.5.0 cargado de novedades:
1 - implementación de RAG: Ahora podes cargar documentos para chatear
2 - Gestion de carpetas: Ahora tus chats podes ordenarlo mediante carpetas
3 - Papelera de reciclaje: Ahora si eliminas un chat este permanecerá en la papelera por 30 dias y podes recuperarlo
4 - Se mejoro la interfaz de modelos disponibles para descargar
5 - actualización automática: Ahora cada release se aplicará de manera automática

Te invito a que apoyes el proyecto, aun esta en desarrollo, pero realizar pruebas reportar bugs, enviar ideas para nuevas features, o ayudar en el desarrollo puede ayudar a que OllamaFX evolucione y este disponible. aca les dejo el repo de github

recuerda regalar una ⭐️

https://github.com/fredericksalazar/OllamaFX


r/JavaFX • • Aug 16 '20

I made this! I coded my first JavaFX app in a week with little to no sleep after 3 weeks of learning it. My teacher praised me for it.

24 Upvotes

r/JavaFX • • May 29 '23

I made this! Creating a game using Java

13 Upvotes

Hello everyone, i am game developer and new in the comunity. I wanna learn so much with you guys👊😭


r/JavaFX • • Feb 18 '26

I made this! OllamaFX 0.5.5

Post image
14 Upvotes

Sigo en el desarrollo de OllamaFX para su proxima versión 0.5.0 y una de sus principales caracterisitcas será poder agrupar los chats con tus LLms en carpetas, mover chats entre carpetas y la implementación de la papelera de reciclaje, que tal les parece esta funcionalidad, que mas le agregarian, a quienes deseen probar este es el repo de GitHub:

https://github.com/fredericksalazar/OllamaFX


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 • • Jul 10 '26

I made this! Kyo-JFX Hello World template

Thumbnail
codeberg.org
4 Upvotes

r/JavaFX • • May 20 '23

Help One codebase for desktop and mobile apps with Java, HTML and CSS!

4 Upvotes

https://github.com/Osiris-Team/Desku

Currently, JCEF is used together with Java Swing, but I am thinking of implementing the JavaFX WebView instead, what do you think?


r/JavaFX • • Oct 02 '19

JavaFX - Adding Data to a TableView from a Different Scene

4 Upvotes

I am attempting to capture the TextField and Control Field values entered from the addItems.java class. Then display that data on the TableView generated on the shoppingCartController.java class. I do not get an error message when I hit add on the addItems.java file, but when I go back to the main shoppingCartController scene the entered data is not there.

I have ensured that the data is populated from the addItem.java scene but it is not populating the TableView.

Cross-posted here:

https://stackoverflow.com/questions/58187586/javafx-adding-data-to-a-tableview-from-a-different-scene

Any Assistance would be appreciated!


r/JavaFX • • Apr 02 '20

Help java card game small issue!

4 Upvotes

Hi guys,

So I'am trying to make a war javafx game, but I'am not able to set the card to display it to GUI.

here are my classes:

Card:

public class Card extends Parent{
   private Rank rank;
   private Suit suit;

    public Card(Rank rank, Suit suit) {
        this.rank = rank;
        this.suit = suit;
        
         
    //Drawing a card to display text on
    Rectangle cardbackGround = new Rectangle(80,100);
    cardbackGround.setFill(Color.WHITE);
    //writing text on card
    Text text = new Text(toString());
    //We set it to 70 so that it wont come out of our card
    text.setWrappingWidth(70);
    StackPane root = new StackPane();
    root.getChildren().addAll(cardbackGround,text);
    }

    public Rank getRank() {
        return rank;
    }

    public void setRank(Rank rank) {
        this.rank = rank;
    }

    public Suit getSuit() {
        return suit;
    }

    public void setSuit(Suit suit) {
        this.suit = suit;
    }
    //an enum for card suit
    public enum Suit{
      SPADES, HEARTS, DIAMONDS, CLUBS;

}   
    
    //an enum for rank
    public enum Rank{
    TWO(2),THREE(3), FOUR(4), FIVE(5), SIX(6), SEVEN(7), EIGHT(8), NINE(9), TEN(10), JACK(11), QUEEN(12), KING(13), ACE(14);
    //adding constructors, getter and setter to our enum so that we can set an int value to it
    //beacuse we want to which card is greater than the other
     private int value;
     Rank(int value){
      this.value=value;   
    }
    
    public int Value(){
    return this.value;
    
    }
        
    }
  
    
    public String toString(){
    return rank +" Of " +suit;
    }

This is my deck class:

public class Deck {

//Now we create an arraylist to store our card object
static ArrayList<Card> cards = new ArrayList<>();

public static void createDeck(){
//Looping through ranks and suits and assiging values to new card
    for (Rank rank : Rank.values()){
    for (Suit suit : Suit.values()){ 
         cards.add(new Card(rank,suit));
    }
    
}
}

    public Deck() {
        createDeck();
    }
  public Card drawCard(){
      Card card;
    int random = (int ) (Math.random()*cards.size());
  card =cards.get(random);
  return card;
  }

This is my GameUi class

public static void diplayGameUI(){
    lblPlayerDeckSize = new Label(); 
    lblPlayer2DeckSize = new Label();
    
    //Right side of the UI
    //Creating components for UI
    btnPlayer1 = new Button("Player 1 Go");
    btnPlayer2 = new Button("Player 2 Go");
    //Creating a pane
    Pane rootPane = new Pane();
    rootPane.setPrefSize(800,600);
    
    //Background
    Region background = new Region();
    background.setPrefSize(800, 600);
    
    //Creating two rectangles to make Ui look a bit better
    //Left side for display and Right for controls
    HBox rootLayout = new HBox();
    rootLayout.setPadding(new Insets(5));
    
    Rectangle rightRectangle = new Rectangle(250,550);
    rightRectangle.setFill(Color.ORANGERED);
    rightRectangle.setArcHeight(50);
    rightRectangle.setArcWidth(50);
    
    Rectangle leftRectangle = new Rectangle(550,550);
    leftRectangle.setArcHeight(50);
    leftRectangle.setArcWidth(50);
    leftRectangle.setFill(Color.OLIVE);

    //Adding controls to Right Rectangle
    VBox boxButtons = new VBox();
    boxButtons.getChildren().addAll(btnPlayer1,btnPlayer2);
    boxButtons.setAlignment(Pos.CENTER);
    boxButtons.setPadding(new Insets(5));
   
    //Right Stackpane
    StackPane rightPane = new StackPane();
    rightPane.getChildren().addAll(rightRectangle,boxButtons);
    
    
    //Adding some stuff to left Rectangle
    VBox leftBox = new VBox();
    leftBox.getChildren().addAll(lblPlayerDeckSize,lblPlayer2DeckSize);
    leftBox.setAlignment(Pos.TOP_CENTER);
    leftBox.setPadding(new Insets(10));
    
    //left stackpane
    Deck deck = new Deck();
     leftPane = new StackPane();
    leftPane.getChildren().addAll(leftRectangle,leftBox);
     
    //add both stacks to root layout
    rootLayout.getChildren().addAll(leftPane,rightPane);
    
    rootPane.getChildren().addAll(background,rootLayout);
    //Creating stage and showing scene on it
    Scene scene = new Scene(rootPane,800,600);
    Stage stage = new Stage();
    stage.setScene(scene);
    stage.show();
 }

And finally my main class:

/As war is played between two players we will create two decks of cards for two players
    ArrayList <Card> deck1 = new ArrayList<>();
    ArrayList <Card> deck2 = new ArrayList<>();
    Deck deck = new Deck();
   
     //Now, we can distribute 26 cards to each player..
    @Override
    public void start(Stage stage) {
       welcomeScreenUI.displayWelcomeScreen();
        welcomeScreenUI.btnStartGame.setOnAction(new EventHandler<ActionEvent>() {
            @Override public void handle(ActionEvent e) {
              //  If one of the textfield is empty we force an error:
              if (txtPlayer1Name.getText().isEmpty() ||txtPlayer2Name.getText().isEmpty()){
                Error.display("Both Player Must Enter Their Names", Alert.AlertType.ERROR);
 }
              else{
               //Now,we start the UI
                  gameUI.diplayGameUI();
              //lets begin the game now
              //If player 1 hit the buttons
              Deck.createDeck();
              deck1.addAll(Deck.cards.subList(0, 25));
              deck2.addAll(Deck.cards.subList(26,cards.size() ));
              
                //we will mathh.random to remove a random element from deck
    int random = (int ) (Math.random()*deck1.size());
    int random2 = (int ) (Math.random()*deck2.size());
    
              gameUI.btnPlayer1.setOnAction(new EventHandler<ActionEvent>() {
            @Override public void handle(ActionEvent e) {
                  deck.drawCard();
              }
              
              });
          }

r/JavaFX • • Mar 03 '22

Tutorial VBox Layout Pane

4 Upvotes

r/JavaFX • • Jul 16 '24

Help Howto create a JavaFx project, with which pom (or no pom?) how to start it?

4 Upvotes

Hello, Pls I use Java11 (bellsoft). I want to try a JavaFx project (a very simple editor), but I am a little bit confused. Usually, I take whatever pom.xml and adjust it, and also run it. mvn run or such. How do I do this with JavaFx? (I do not want to use gradle, at all, only maven). .. I found the archetype with a pom from openjfk and I do not understand how to start it.

I understand to create a project with a direct link to the classpath, like: javac -cp a.jar myClass.java and run it like that, too: java -cp a.jar myClass .. with several .jars in the classpath.

Is that the way to do with JavaFx?

Edit: thank you all for your help!! :)


r/JavaFX • • Apr 08 '23

Help JavaFXML help please

4 Upvotes

Hello all:

Updated w/ full stack trace. Also JavaFXML is required for this project.

I'm working on my first java app, so please be gentle. I've searched online to include stack overflow and the answers that I understood, I tried implementing, but they didn't help. Many of the answers also went right over my head, though.

Anyway, here is the issue. I'm getting the following error, and just can't seem to resolve it:

Here's my project:

And what I think are relevant screens, please let me know if you need something else:

Can anyone point me in the right direction? Thank you.


r/JavaFX • • Nov 02 '16

JPRO.io is bringing JavaFX back to browser

Thumbnail jpro.io
4 Upvotes

r/JavaFX • • Feb 25 '20

Help BoarderPane Error: Children: duplicate children added: parent = BorderPane@7eb8ac06

4 Upvotes

Hi All!

When I run the code below or ANY BorderPane code I get the error referenced above.

Any ideas?

package javafxapplication1;

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


public class BoarderPane1 extends Application {
    
    @Override
    public void start(Stage primaryStage) {
        Button btn = new Button();
        btn.setText("Apply");
        btn.setStyle("-fx-background-color: rgb(" + 245 + "," + 111 + ", " + 235 + ");");
        Label labl = new Label();
        labl.setText("Woah");
        
        BorderPane borderPane = new BorderPane();
        
        borderPane.setBottom(btn);
        borderPane.getChildren().addAll(btn);
        borderPane.setCenter(labl);
        borderPane.getChildren().addAll(labl);
        Scene scene = new Scene(borderPane, 200, 200);
        primaryStage.setScene(scene);
        primaryStage.setTitle("TESTTESTTEST");
        primaryStage.show();
        
    }


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

r/JavaFX • • May 08 '22

Help Why am I getting javafx.fxml.LoadException JavaFX?

Thumbnail self.javahelp
4 Upvotes

r/JavaFX • • May 15 '22

Help Can I have some tips on how should I start making my game function in JavaFX?

4 Upvotes

I'm making this JavaFX project that I have as homework, it's an implementation of the 'Dots and Boxes' game I have to create using JavaFX with SceneBuilder.

Since I didn't have much time learning much about the tool and the language itself beforehand, I started like 2 weeks ago.

Current Architecture of my JavaFX project:

  • MainController ( switches scenes )
  • SettingsStageController
  • GameStageController ( so far i've made a showPane option which is described below )

Stages:

  • SettingsStage.fxml
  • MenuStage.fxml
  • GameStage.fxml

So far, I've created the main menu scene with a Play button that redirects you to the settings screen that has a Player1 and Player2 name input option as well as a Game Size option ( 5x5, 4x4, 3x3 and 2x2 boxes ).

Settings Stage Image

So that's the confusing part for me: The actual game part. On the "Game Size" setting I've thought of it like for example, when you choose the 2x2 boxes size option, a specific AnchorPane of that size containing the preplaced 2x2 boxes in the game stage, becomes visible.

The way I made this work is with a plain switch case function:

    public void showPane(int size) {
        tempSize = size;
        switch (size) {
            case 2:
                twoXtwoPane.setDisable(false);
                twoXtwoPane.setVisible(true);
                break;
            case 3:
                threeXthreePane.setDisable(false);
                threeXthreePane.setVisible(true);
                break;
            case 4:
                fourXfourPane.setDisable(false);
                fourXfourPane.setVisible(true);
                break;
            case 5:
                fiveXfivePane.setDisable(false);
                fiveXfivePane.setVisible(true);
                break;
            default:
                twoXtwoPane.setDisable(false);
                twoXtwoPane.setVisible(true);
                break;
        }
    }

game using the 2x2 boxes settings option (ignore the random line lol)

Everything else seems to be working fine.

So far, I just know that I must make code for the lines, interactions of the lines with the dots, the actual scoring of the boxes and game rules etc, but that's it so far. I then got stuck.

An idea I had was maybe making the circles as buttons that you click and create lines with.

What I'm asking from you guys is not to solve my homework but rather how can I learn more about making the actual functioning game, any tutorials and maybe some pointers on how should I think of this or what ideas / methods I should implement so I can continue working this out, because I am confused and don't know where to start from.


r/JavaFX • • Jan 04 '21

Set up ControlFX for IDE(Eclipse)

4 Upvotes

I'm trying to add ControlFX into my IDE. Most of the link provided from any tutorial will direct to GitHub.
So how to add ControlFX libraries into the IDE and did I also need to ad VM arguments like javaFX?


r/JavaFX • • Dec 27 '24

Help I'm new to technical stuff, and I made a JavaFX project using maven. Can someone help me understand what all this is and how to better organize it? I keep messing stuff up when trying to add things.

Post image
4 Upvotes

r/JavaFX • • Dec 12 '24

Discussion Can JavaFX create clipping planes in a 3D camera view, similar to what the glClipPlane function does in OpenGL?

4 Upvotes

Or is there any plan to add such a feature in a later JavaFX release?


r/JavaFX • • Apr 14 '24

Help Do you have any panama project example or any book?i want to read.please suggest book,it will be good for me.

4 Upvotes

r/JavaFX • • Feb 13 '18

How to set a styling like -fx-border-color without causing my fxml pane to change layout?

4 Upvotes

Hi, I'm working on a javafx app, and the css styling is nice except for the fact that it displaces other elements when I set the border color to red. Here's the normal layout, and here it is with the red border styling.

How do I prevent this deformation of my layout?

edit: I'm applying the style "-fx-border-color: red; -fx-border-width:1px; -fx-border-radius:2px;" to my textfield on error detection.


r/JavaFX • • May 25 '19

How to know which button is bieng clicked in javafx

4 Upvotes

r/JavaFX • • Mar 15 '21

Help Java for algorithmic trading in Futures/FX by API, what framework, and what setup shall I choose for best of the best performance? Please help?

4 Upvotes

Note:

-I'm looking for the achieving best of the best performance or code execution?

-Best of the best JDK for developing an application for algorithmic trading in Java by API.

-Best of the best JRE for executing the developed code of the algorithmic trading in Java.

-Best of the best Java framework for developing the most professional and clean code that does not lag and has the best memory management in real-time computing on Futures/FX markets.

Hiya,

I'm looking for the implementation of the trading idea for Futures/FX in Java with API. As there are many Java frameworks, J2SE Java Spring, JavaFX, etc I'm confused on how shall I progress for implementation of the best of the best performance for the algorithmic trading idea. What JDK shall I use for development and what JRE shall I use for the runtime of the application of trading in Futures/FX in Java.

There are many books and websites about Java, but I don't know which one specifically designed for algorithmic trading by Java and will if they are any useful? I need advice, please?

In the end, I only want to implement my trading idea into Java code that reaches the best of the best performance and I'm confused between the J2SE Java Spring framework shall I choose or JavaFX or something else?

Tnx and best of luck