Let's say we have a following class with Swing components.
public class PersonEditor {
JPanel mainPanel;
JTextField firstname;
JTextField surname;
JFormattedTextField dateOfBirth;
...
public PersonEditor() {
GSwingBuilder.build(this); // inject the above components
}
...
}
Let's create the following companion resource file,
named PersonEditor.def...
In the Gooey MvnC prequel, we consider an MVC-type separation for
programming a Swing UI panel, and convention-over-configuration
to automate events, threading and beans binding.
Now as an illustration of the above intent,
we implement a minimalistic helper class to create dynamic proxies
for event listeners wired to event handler methods in our controller.
Click here to read "Gooey...