• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can html get a String from applet through MouseListener?

 
Kidd He
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code:


Now, I have gotten a String from the mouseClicked() method, how can I pass this String a the present html page in which the applet appear?I want the html page to get the String and print some introductions. Must I use the communication between applet and servlet?
Thanks!
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's possible with the help of LiveConnect, about which you can read more here.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic