Hi,
I’ve gotten through the Nifty GUI Start screen tutorials ok, but for the ‘Create a PopUp Menu’ no Java imports are listed. I think I found the Element import, but can someone point me to the Menu import(s)? I tried ‘de.lessvoid.nifty.controls.MenuItemControl’ found in Nifty 1.3 Javadocs but it isn’t used and the symbols are still not found. Is the Menu from awt or swing?
While searching, I did see that the menu firing might be broken, so if that still doesn’t work I’ll leave it till it’s resolved.
Here are the lines affected (tutorial code):
Menu myMenu = popup.findNiftyControl("#menu", Menu.class);
myMenu.setWidth(new SizeValue(“100px”)); // must be set
myMenu.addMenuItem(“Click me!”, “menuItemIcon.png”,
MenuItemActivatedEvent.class,
new MenuItemActivatedEventSubscriber());
Specific symbols affected:
Menu
SizeValue
MenuItemActivatedEvent
MenuItemActivatedEventSubscriber()
Thanks