Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Building a Site Navigation menu using AWT

 
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.
 
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.
 
Uh oh, we're definitely being carded. Here, show him this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic