Swing has been a great retainer for years, but with todayís focus on rich user interfaces, many Java applications can benefit from using JavaFX instead. The question is, how do you manage that when youíre stuck with a an old Swing front end? This presentation starts with a typical Swing application and replaces parts of it with a shiny new JavaFX interface. During this transformation event listeners are replaced by JavaFX bindings, hardcoded color constants are replaced by style sheets and instead of the limited HTML support in Swing, the JavaFX WebView component is used to display formatted content. After this presentation the audience will have a thorough understanding of how JavaFX can replace all or parts of a Swing user interface. Read more
Creates a simple GUI to add or subtract two numbers using the Java Swing framework and the NetBeans GUI design tool.
Monkeybars is a JRuby library that gives Ruby developers easy access to the world of Swing GUI development. Much of the complexity of Swing is removed and appropriately Ruby-ized. There is an emphasis on testability and better decomposition of apps that are historically notoriously difficult to test. This talk will focus on presenting the Monkeybars library and walking through its usage in building a small GUI application. I will show interfacing with Swing components, using GUI builder tools to create a layout and packaging of the application for distribution as an executable jar file, a Windows exe file and an OSX .app bundle. Along the way I will show how Monkeybars decouples app logic from view code and the mechanisms that are in place to automate the repetitive tasks involved in GUI development. I will also touch on the general structure of a JRuby application and the problems faced when bridging the two worlds. At the conclusion, attendees will have a good idea of what’s involved in creating a GUI using Monkeybars and hopefully will have a better understanding of how to leverage Java libraries from their Ruby applications.
Back again this week is Chet Haase, one of the leading voices in Java desktop technologies. Joining Chet for this Special Edition of SDN Channel is, Ed Ort, our host from the Java.sun.com team. Ed has some great questions lined up that I’m sure will spark your interest. This week we are going to dive deep and learn about how you can use the power of Java 2D and Swing to create exceptionally cool graphical and animated effects. We’re not just talking about whizzy interfaces that look cool, but interfaces that provide interactive, real-time, functionality and performance.
A small tutorial introducing Swing GUI building with NetBeans 5.5.1