This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "using TreeMap object in Applet " Watch "using TreeMap object in Applet " New topic
Author

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
Farhan
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,
Manfred.
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.
Regards
Farhan
 
jQuery in Action, 2nd edition
 
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
TreeMap
[Solved] HashMap, Which thing defines the order of elements