Welcome to the
Java Ranch Amgad,
Is your JMenu static or do the objects of the class JMenuItem change? If they change, see MenuListener.
In any case, you have to call the JMenu method add() to add objects of the class JMenuItem.
Also, you'll always need a listener for the objects of JMenuItem before they'll do anything. See ActionListener actionPerformed().
If we don't answer your question, feel free to post a follow-up question.
Kaydell
[ June 04, 2007: Message edited by: Kaydell Leavitt ]