简体   繁体   English

只有一个实例的Java Applet到Applet通信

[英]Java Applet to Applet communication with only one Instance

i´ve got to write a simple JApplet for homework and i´m kinda stuck. 我必须写一个简单的JApplet来做家庭作业,有点卡住了。 It´s pretty simple the applet has one JTextField and one JButton. 这个小程序非常简单,它具有一个JTextField和一个JButton。

Now, if i open that Applet two times they are supposed to communicate(write in the TextField->click the Button and the text shows in the other TextField), but without something like Client-Server Communication. 现在,如果我两次打开该Applet,它们应该进行通讯(在TextField中写入->单击Button,文本显示在另一个TextField中),但是没有客户端-服务器通讯之类的内容。 The two times i open the Applet, they have to be the same Instance. 我两次打开Applet,它们必须是同一实例。

I´m pretty much a noob when it comes to Applets, so i appreciate any kind of help. 关于Applet,我几乎是个菜鸟,所以我感谢任何帮助。

Thanks. 谢谢。

When in doubt, always check the Java tutorials from Oracle. 如有疑问,请始终查看Oracle的Java教程。 Here's a link to a tutorial for inter applet communication http://docs.oracle.com/javase/tutorial/deployment/applet/iac.html 这是指向小程序间通信的教程的链接http://docs.oracle.com/javase/tutorial/deployment/applet/iac.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM