You definitely need to go through basic Swing tutorials asap. A few things to get you started:
You do not need to go through all of that razzmataz(its a complex scientific term meaning excessive code which doesn't really make sense) to make your JMenuItem.
A simple: is sufficient.
Last tip before you go off and dig into Swing tutorials, order does matter. So do not add your JMenuItem to a JMenu after the JMenu has been added to a JMenuBar.
Good Luck to you in all your Java and Swing endeavors!
Bobby Smallman wrote:do not add your JMenuItem to a JMenu after the JMenu has been added to a JMenuBar.
How would that be a problem? Are you aware that menus are sometimes generated at runtime?
I guess I was sleepy and didn't express myself accurately, I did not mean it as though it would not compile. I meant to say that your ordering of JMenuItems will be important when you have multiple items to place both visually and for readability.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com