Jason S
unread,Jul 22, 2011, 12:00:56 PM7/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javabu...@googlegroups.com
I went to add menus today to one of my JPanels that is constructed using JavaBuilders, and the PDF guide recommends using Actions.
Except my class looks like this:
public class MyView
{
final private JPanel panel = new JPanel();
MyView(...)
{
...
SwingJavaBuilder.build(panel, yaml, resource);
}
public void onFoo() { ... }
}
So SwingJavaBuilder gets to do its magic on MyView.panel, but when it goes to find an action method onFoo(), it's looking in the wrong place.
Is there a way to tell it to build the GUI using MyView.panel but look for methods with MyView.this?