Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!