In this youtube Video I describe how to write a platform independent Java Swing application with FlatLaf look and Feel. In less than a quarter of an hour I am writing a small application with a Textarea to edit content and a Write and a read Button to write and read the File and also an exit button.
One Correction: not a Web but a Desktop application. Web comes later. Dunno why but it was really late!!!
Netbeans contains the UI Designer. IntelliJ can have an UI Designer when installing JFormDesigner, it’s a plugin which costs 30 per year. Netbeans is completely for free.
I am using both IDE’s. I prefere Netbeans for Desktop-Projects with Java Swing. Definitely, while the Drag and Drop UI Designer is really nice.
Why I am preferring Swing for the UI? While the jar File can run without any changes on Windows, MacOS and Linux. On all platforms runnable with java -jar nameoftejar.jar
That makes it for me simple to test the app on all platforms before I am starting to build my jPackage for the platforms and deploy the Software to Customers. Internally we even use jars directly as program files while we even are too lacy to build Packages. And while it works without any problem.
When I opened the project it seemed to have less items in the project. And when I run it I get: Exception in thread "main" java.lang.RuntimeException: Uncompilable code - exception javax.swing.UnsupportedLookAndFeelException is never thrown in body of corresponding try statement at swingexample.SwingExample.main(SwingExample.java:1)
Should I be able to download the project and just hit run?
download the flatlaf from formdev.com and then import it like I sowed in the video while I was not delivering it with. I was not placing it as file in project but as link
lao. setup in your project properties the right java version.
depends on our permissions of your computer
if you have write permissions it will work without any problem. I was adding it without the need of giving permissions and tested on McOs, Windows and Linux