Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Building a Site Navigation menu using AWT

 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, this one has buffled me for ages. All i need is to build a menubar with menus on it so that I can navigate my site. It has to be based on AWT and not SWING. AWT because there is a better chance that it will appear in many browsers, i built it in Swing before but many of my users complained because they could not see the menu and they would shreik in horror when i told them about downloading the Java Runtime Environment (Plugin) So I dropped the SWING-based navigator.
Now, I've read the books and the docs and the main problem is that it seems as if the only way to have a menubar and menus on it in *AWT* is to bind a menubar to a frame using frame.setMenubar(). I have tried this and it works, I can see my menus. However, the problem starts when I need for this menu to be shown inside an applet. I tried it and the browser launched a new window to present the menus which is not good. Of course, a Frame is a window and that is why the browser spawns a new window to show it.
So is there a remedy for this? I'm considering to investigate PopUpMenu(), maybe that would help? Another solution is using JavaScript menus but we all know the problems with that one. I think I have a better chance with an AWT-based menu.
Please point me to a good direction. i'm a quick learner. Your help would be greatly appreciated.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ernest,
You have hit the nail on the head. You already know your two choices:
1. Popup menu
2. JavaScript. I would recommend using something like DreamWeaver so you won't to many problems ...
Regards,
Manfred.
 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Manfred. I will go with popup menu. Btw are u telling me that I can use Dreamweaver to build menus??
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ernest,
You can use DreamWeaver to create an entire website. It is cool stuff ...
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic