Web Hosting Talk







View Full Version : Java DropDown


HostRefugee-Vince
01-22-2006, 01:11 PM
I am looking for a Java dropdown that looks like a regular dropdown box, but has the ability to be nested.

For example:

Category1 -> Item1, Item2

Category2 -> Item1, Item2, Item3
Category3 -> Item1, Item2

I have searched google and found plenty of Java Menus that allow for nesting, but none that look like a regular dropdown box.

I am sure someone, somewhere has created something like this, and hopefully someone here can push me in the right direction without spending hours searching (which I already have).

Thanks,

the_pm
01-22-2006, 01:36 PM
Moved to Programming.

I would highly suggest looking for a JavaScript solution instead of a Java approach. Your audience is much more likely to have JavaScript enabled than a Java plug-in installed. Plus, JavaScript can be programmed to degrade gracefully for people who do not have it enabled. This takes very conscientious programming, but it's certainly an advantage over many of the plug-in alternatives.

But if you want Java, so be it. Now, you're going to run into a problem trying to recreate the select box element in a multi-level format, mostly because such menus do not have this functionality in the first place. So creating it to replicate the look and feel of drop downs will be impossible. If you want this look, I would suggest a multiple menu system, whereby selecting a choice in a menu causes a second menu to populate with subtopic choices.

You could always just use actual dropdown menus too :)

sasha
01-22-2006, 02:05 PM
I am not sure how would this be possible and look decent in a same time. Java needs to be added to the page as applet in it's square box. If you would have nested drop-down menu there, this box would have to be as large as menus when they are expanded all the way. I have hard time imagining situation where this would look good.

HostRefugee-Vince
01-22-2006, 02:57 PM
ok scratch this idea :)

Will have to find a different solution.