Skip to main content

Blog Archive for evanx during July 2008

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...
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. Gooey Event Proxy: A part of "Gooey...