when I create default button and associate with new defasult swing action,
WB generates something like this:
- Code: Select all
private class SwingAction extends AbstractAction {
public SwingAction() //
{
putValue(NAME, "Login");
}
@Override
public void actionPerformed(ActionEvent e) {
}
}
wich is rendered OK as shown in attach #1
if however I provide the same code, but hide the constructor from WB:
- Code: Select all
private class SwingAction extends AbstractAction {
// HIDDEN FROM WB: public SwingAction() //
{
putValue(NAME, "Login");
}
@Override
public void actionPerformed(ActionEvent e) {
}
}
now WB can not render it any more as shown in attach #2
the real problem is not with this toy examle but when I substitute
more complex implementations of javax.swing.Action
thank you;