Two Laptop Bag*
The moose likes Applets and the fly likes using TreeMap object in Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "using TreeMap object in Applet " Watch "using TreeMap object in Applet " New topic

using TreeMap object in Applet

Farhan Tariq
Ranch Hand

Joined: May 14, 2001
Posts: 54
Hi all!
I want A TreeMap in my Applet. Which have keys and values. I don't want that users can see my values (which r URL's) they only can see keys in applet. So if they select any key and hit Button, I want the specified URL with that key activate and data linked by that URL start download at user's computer. How can i do this plz help me
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Farhan,
Just use a JTree in your applet that displays the TreeMap keys. The user selects a 'leaf' then hit a button and your code does the rest.
Good Luck,
Farhan Tariq
Ranch Hand

Joined: May 14, 2001
Posts: 54
hi Manfred!
plz tell me about the code that will download the file to the user's computer because i really don't know anything about network. or just tell me the PseuduCode that help me.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: using TreeMap object in Applet
Similar Threads
Hashtable iterator question
Treemap sort based on Value.. is it possible?
How to keep the order of elements in hashtable
[Solved] HashMap, Which thing defines the order of elements