private class MyAction extends AbstractAction
public MyAction () {
putValue (NAME, "Do Something");
}
@Override
public void actionPerformed(ActionEvent e) {
APIObject obj = getLookup().lookup (APIObject.class);
JOptionPane.showMessageDialog(null, "Hello from " + obj);
}
}
public MyAction () {
putValue (NAME, "Do Something");
}
@Override
public void actionPerformed(ActionEvent e) {
APIObject obj = getLookup().lookup (APIObject.class);
JOptionPane.showMessageDialog(null, "Hello from " + obj);
}
}