I tried out the New->Form Snapshot on an existing Swing application, and ran into a few problems.
On the main console frame of the application which has extensive JMenuBar with many JMenus, it only captured the JMenuBar. Maybe I was expecting too much from this. I though it could pull in the entire menu. I was even thinking it might find the callback code (since it is all available in my project), and record all the bindings for the menu items.
I tried it on a bunch of form dialogs, and it worked on most of them,
at least at first glance.
I did get a couple errors on a few dialogs: See attached.
Issues #2 Failed to create snapshot: java.lang.RuntimeException: java.io.NotSerializableException: com.jgoodies.forms.layout.RowSpec#UnmodifyableRowSpec
I got this error on about 50% of the dialogs in the application because
they use JGoodies to create the button panel. Here is the code:
Issue #3 Unknown layout manager classes found. javax.swing.plaf.basic.BasicOptionPaneUI$ButtonAreaLayout Components using these layout managers iwll not be included inthe snapshot. Continue?
On the last item, this dialog was created with JOptionDialog. Here is part of the code:
I don't know if it would be possible to detect when JOptionPane is being used, and record it as such. But you don't have JOptionPane on the palette.