I'm writing a Java Desktop App using NetBeans 6.5 and a Swing Patterns that keeps repeating.
Each and every one of my dialogs has a "Save Button" and "Close Button" with different mostly different behaviour behind the Save Button and identical code behind the close button.
How can I reuse this code without copying and pasting and at the same time retain the user of GUI Builder tools for the Inner panel of the dialog box?