The ability to create a screenshot programmatically in Java code can be very useful. I personally use it to create my animated transitions.
Here are 4 ways to create a screenshot in Java.
Bjorn Roche wrote about a JavaFX project that was dropped in favor of using Swing inside an Applet. Some reasons for the failures were immature APIs, stability and performance. These are the risk you take when adopting new technologies and hopefully will improve soon. There was one point that stands out and I do agree with:
Swing has a reputation for being ugly, simply because most of the included Look and Feels are ugly
Since Swing components are lightweight, you have more control over the look and feel. You can make it as rich or as ugly. At least you have a choice!
At this point, JavaFX has a long way to go before it can replace Swing.
By default, the JTable show the cell values as regular text using a JLabel. To display numbers properly, you are force to pre-format the number as string values before setting them in the table model. There is a better way, by using your own implementation of TableCellRenderer. This will allow you to store the values in their intrinsic form inside the table model.
Ten years ago, I became a founding member of a company on a quest to build a tool for Fixed Income Analysis. Our goal was to build our own rich client desktop application for performing analysis in a niche market. If we had to do it again today, I would highly recommend NetBeans RCP and save ourselves much of the pain of rolling your own desktop platform. Leveraging NetBeans RCP would have allowed us to focus on delivering more of our core values.