Customizing the designer menu

Is there any way to add a menu item to the menu bar on the designer? Sorry but I’m new to this stuff.

I have never done it, but it seems you can try the following:

JFrame frame = designerContext.getFrame();
JMenuBar menuBar = frame.getJMenuBar();
//customisation comes below

Thanks, that helped. I tried something similar but I kept trying to use designerContext.getFrame() as a Frame instead of a JFrame. Here’s what worked:

JFrame frame = (JFrame) context.getFrame();
JMenuBar menuBar = frame.getJMenuBar();