my dog learned polymorphism*
The moose likes Applets and the fly likes How can html get a String from applet through MouseListener? 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 "How can html get a String from applet through MouseListener?" Watch "How can html get a String from applet through MouseListener?" New topic
Author

How can html get a String from applet through MouseListener?

Kidd He
Ranch Hand

Joined: Sep 17, 2006
Posts: 65
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!


SCJP1.4 93%<br />SCWCD��
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41144
    
  45
That's possible with the help of LiveConnect, about which you can read more here.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can html get a String from applet through MouseListener?
 
Similar Threads
How to refer Outerclass from its innerclass
How to refer Outerclass from its innerclass
Doubts in Applet
REWARD : pass a2a parameter, involves using getCodeBase()
2 Questions + 1 Meta-Question