Hi all,
I'm evaluating WindowBuilder and i'm using the "stub event handler methods" option .... but is it possible obtains something like:
txtName = new JTextField();
txtName.addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent e) {
do_txtName_keyPressed(txtName, e);
}
public void keyReleased(KeyEvent e) {
}
public void keyTyped(KeyEvent e) {
}
});
txtName.setBounds(31, 19, 120, 22);
frame.getContentPane().add(txtName);
}
protected void do_txtName_keyPressed(Object sender, KeyEvent e) {
}
.... where stub method receive either the component reference (sender) and the event object (e) ....
It's very useful !!!
Thanks.
Nicola.