# Designer Menu surrounded with ¿ and?

**URL:** <https://forum.inductiveautomation.com/t/designer-menu-surrounded-with-and/54807>\
**Category:** Module Development\
**Created:** [January 9, 2022, 9:40am UTC](https://forum.inductiveautomation.com/t/designer-menu-surrounded-with-and/54807 "2022-01-09T09:40:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferihandoyo](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@ferihandoyo](https://forum.inductiveautomation.com/u/ferihandoyo)\
**Post date:** [January 9, 2022, 9:40am UTC](https://forum.inductiveautomation.com/t/designer-menu-surrounded-with-and/54807/1 "2022-01-09T09:40:13Z")

</div>

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](http://127.0.0.1:57378/help/nftopic/jar:file:/C:/Users/admin/.m2/repository/com/inductiveautomation/ignition/designer/8.1.0-SNAPSHOT/designer-8.1.0-SNAPSHOT-javadoc.jar!/com/inductiveautomation/ignition/designer/model/menu/JMenuMerge.html), 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):

```auto
 @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:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/8/7892aaf2a0455b9f555e115076ee3f585599fec6.png)

Thanks

---

<div class="post-metadata">

**Author:** ![ferihandoyo](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@ferihandoyo](https://forum.inductiveautomation.com/u/ferihandoyo)\
**Post date:** [January 9, 2022, 11:47am UTC](https://forum.inductiveautomation.com/t/designer-menu-surrounded-with-and/54807/2 "2022-01-09T11:47:13Z")

</div>

ok - I guess I should close this question myself now, since I think I should use different approach.  
Still unsure with ¿ and ? I got using getModuleMenu(), but I am happy with the solution in this [topic](https://forum.inductiveautomation.com/t/customizing-the-designer-menu/7308) to use [DesignerContext](https://docs.inductiveautomation.com/display/SE/Scopes%2C+Contexts+and+Hooks) passed in startup() method to get Frame and Menubar from it.

hope this can be useful for others. My menu shows correctly now.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 9, 2022, 1:37pm UTC](https://forum.inductiveautomation.com/t/designer-menu-surrounded-with-and/54807/3 "2022-01-09T13:37:53Z")

</div>

The question marks indicate that Ignition was trying to use the text as a key in to a localization bundle and failed to find that string. Supply a localization bundle (one or more) for your module.

---

<div class="post-metadata">

**Author:** ![ferihandoyo](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@ferihandoyo](https://forum.inductiveautomation.com/u/ferihandoyo)\
**Post date:** [January 9, 2022, 9:19pm UTC](https://forum.inductiveautomation.com/t/designer-menu-surrounded-with-and/54807/4 "2022-01-09T21:19:24Z")

</div>

@pturmel, thanks for that. your note led me to this [post](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962), which looks similar to the issue I had.  
I will try it in my code …

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 9, 2022, 10:27pm UTC](https://forum.inductiveautomation.com/t/designer-menu-surrounded-with-and/54807/5 "2022-01-09T22:27:13Z")

</div>

Fair warning: Ignition is notorious for not releasing bundles on module restart/replacement. If you think it **should** work, try a gateway service restart to be sure.

---

<div class="post-metadata">

**Author:** ![ferihandoyo](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@ferihandoyo](https://forum.inductiveautomation.com/u/ferihandoyo)\
**Post date:** [January 10, 2022, 9:58am UTC](https://forum.inductiveautomation.com/t/designer-menu-surrounded-with-and/54807/6 "2022-01-10T09:58:02Z")

</div>

yep, the resource bundle fixed my ¿? issue.

added in startup:

```auto
BundleUtil.get().addBundle("MyMenuBundle", getClass(), "ExampleScripting");

```

and in getModuleMenu():

```auto
JMenuMerge myMenu= new JMenuMerge("MyMenuBundle.menu1.Label");

```

Thank you.
