Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inter-Applet Communication

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created two applet .
I am trying to draw a line from first applet to the second.
by following code:-
Applet oa;
oa= getAppletContext().getApplet("myapplet1");

if(oa != null){

int x=oa.size().width;
int y=oa.size().height;
Graphics g=oa.getGraphics();
*My Problem is my context is not retriving(i.e oa=null is comming) what will be the problem?
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!