how two applets communicate using static variable ?

Morningdot Hablu

Morningdot Hablu

@morningdot-6Xuj4M Oct 16, 2024
hello friends,
Anybody have idea about how two applet communicate using static members.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Reya

    Reya

    @reya-SMihdC Dec 28, 2010

    If the applets are of same classes they can communicate with each other via shared static variables.If the applets are of different classes they need a reference to the same class using static variables.The applet can get reference to all other applets on the same page using getApplets() method.Once you got a reference you can communicate with it using public members.