Hey everyone! I'm planning to create a desktop application using Java but I'm struggling to find a good UI framework that feels native. Also, I'm looking for recommendations on which embedded database to use for storing user data on their devices—no server involved. Any suggestions?
5 Answers
I lean towards using JavaFX as well! Swing is lightweight and easy to pick up, but JavaFX really has more features that can help you create a dynamic UI.
Definitely consider using H2 for your embedded database; it integrates pretty well into applications and has a good performance record.
If you're considering using Swing, don't skip checking out FlatLaf. It offers some great modern themes that make Swing apps look much more polished than the default look.
FlatLaf does sound interesting! Has anyone used it extensively?
I love how it can freshen up Swing applications!
SWT is also worth considering if you're after a UI that's more native to the operating system. Just a thought! And for the database, if you're looking for embedded SQL, H2 might be a solid option.
For a modern GUI, I recommend using JavaFX along with SQLite as your embedded database. It's pretty straightforward to package everything into a single JAR file that includes your database file, making it easy to distribute.
Why choose SQLite over H2? H2 is a pure Java database and might be beneficial for some use cases.
Yeah, I've heard that H2 can be really good as well! What are its advantages?
That's a great suggestion! Mixing H2 with a lightweight framework would be a smart move.