You can create menu items for your own Java classes.

Right-click the source file's node and choose Copy. Choose Tools > Options. Expand the IDE Configuration node and the Look and Feel node. Then expand Menu Bar node. Right-click the category where you want to place the menu item and choose Paste > Copy. Then select the node of the class that you pasted and press F9 to compile the class.

You can use a similar procedure for adding items to toolbars. The Toolbars node is located below the Menu Bar node.