Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using TreeMap object in Applet

 
Farhan Tariq
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic