Posts

Showing posts with the label javafx

Fast & Dirty Java GUI building on 2017

Java Gui of Choice (2017) So first of all, yes, Javafx is still a thing. You want to build a gui for your Java application? You don't have many options, AWT, SWT and Swing are dead, JavaFX is the official way to go for a Java developer. Yes, you can have an HTML gui for your java application, and that is a perfectly valid choice, which should be accomplished by using Vaadin or Apache Wicket, but those options force you to deploy your gui with a web server which could be uncomfortable for many a developer. So JavaFX it is; Now, you can go around the web and learn how to use all of those plugins and wizards which will hide the simple mechanism of building a javafx gui or you can continue reading this post  :-) JavaFX Installation/Configuration The first thing you will want to do is to download JavaFX SceneBuilder, the SceneBuilder is Oracle's official app for creating nice FXML files using simple drag and drop techniques. Although Oracle has open sourc...

Single Java App a Day

This idea popped into my head several days ago and doesn't leave me, so although I know I won't have time to implement it in the near future I am writing it down - feel free to steal this idea and implement it! Basic idea - for an extensive amount of time (a month? two months?) build every day a new java application, as follows: Think thoroughly about the design of the applications as they should have common componnets spanning over all of the applications, where each app will add it's added benefit (the main business login) on top of the common grounds For example, I want to have all of my applications as javafx gui applications, so I should build a common component with a main content area, a log area below that one, a menu with all common menu items already there (file->save, file->exit, help->help, help->about, help->exit) etc Each application will do an atomic action (KISS) All applications should be open sourced and on github All the commo...

GUI in Java Revisited (2015)

Which GUI framework should I use for my Java application ? Brief History: AWT -> SWT -> Swing When I had to choose which IDE gives me the best Swing WYSIWYG builder Brief History: Eclipse crappy builder -> Netbeans Matisse -> Google's Windows Builder (donated to Eclipse) All of the above were my conclusions till 2014, but much had changed, HTML5 is rising with many many 3rd party frameworks Jquery MVC frameworks, JavaScript server side frameworks etc. In the Java scene, Oracle has introduced JavaFX several years ago but it wasn't built specifically for forms, and it had it's labor aches. Nowdays, JavaFX has matured much, Oracle has pushed Swing aside and introduced a very nice WYSIWYG form editor for JavaFX, and HTML5 isn't a myth but a very live framework. So what are my conclusions? Html5 sounds great, but I need some more straight forward out-of-the-box html5 with Java solution instead of a bunch of 3rd party J...