Re: [Java-gnome-developer] Re: Some questions from the tutorial.
Brought to you by:
afcowie
From: Mark H. <mh...@ti...> - 2004-10-10 13:48:11
|
Hi, Sorry for taking so long to reply. Do you have a call to showAll() in your code? On Sun, Sep 19, 2004 at 05:29:21PM -0500, Rishabh Manocha wrote: > > public void createMenu() { > MenuBar bar = new MenuBar(); > MenuItem child = new MenuItem("File",false); > Menu file = new Menu(); > MenuItem quit = new MenuItem("Quit",false); > quit.addListener(new ItemListener() { > public void itemEvent(ItemEvent event) { > fileExit(); > } > }); > file.append(quit); > child.setSubmenu(file); > bar.append(child); > this.app.setMenuBar(bar); > } > > However this does not show a menubar at all. I feel I am so close but > yet so far. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... |