You'll have to post a more detailed question in order to get good replies.
What kind of program? GUI, command line?
I'm assuming it's a GUI program. Have you written the GUI yet? Have you implemented the MenuBar?
There are some good tutorials out there on how to implement MenuBars in a
Java GUI.