Hi,
I am new to Ignition and Module development, and I have been trying to learn from SDK example. I tried the example from javadoc based on JMenuMerge, and it worked.
Now, I want my menu to be separated (not part of File->New), and I think I get really close to get it working - but strangely, my menu text is surrounded by ¿ and ?
I wonder if anyone knows why?
My code below (DesignerHook.java):
@Override
public MenuBarMerge getModuleMenu() {
MenuBarMerge mExampleMenuBar = new MenuBarMerge("scripting-function-build-1.0.0-SNAPSHOT");
// create menu item
JMenuMerge mExampleMenu = new JMenuMerge("Example Menu");
JMenuItem mSayHello = new JMenuItem("Say Hello");
mSayHello.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ev) {
myTestAction();
}
});
mExampleMenu.add(mSayHello);
mExampleMenuBar.add(mExampleMenu);
return mExampleMenuBar;
}
and here’s the result:
Thanks