I am trying to build off of the simpleExtension example and i am using a menu item.
I want a menu item to open a JPanel.
I have already created the JPanel and tested it on it's own, just the UI without any triggers or events.
So i hvae the following
public class ExtensionSimpleGoranQA extends ExtensionAdaptor {
.
.
private ReportingPanel reportingPanel = null;
.
.
@Override
public void hook(ExtensionHook extensionHook) {
super.hook(extensionHook);
if (getView() != null) {
extensionHook.getHookMenu().addToWhat(reportingPanel ());
}
}
This is where i have trouble, what is the appropriate hook method in this case.
Am i even going about this the right way?
My other class is
public class ReportingPanel extends AbstractPanel implements Tab
the other option would be
public class ReportingPanel extends AbstractFrame
both would work.