Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Multiple Applet

  Asked By: Leon    Date: Apr 25    Category: Java    Views: 669
  

I have two java files. first.java and second.java
Both java files have applet. I have fuction setmessage() define in
first.java. Now, I want to call this function in Second.java. Can
anyone please tell me how would i do it. I Really appriciate your
help.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Olga Kates     Answered On: Apr 25

Assuming you have setmessage in MyMsg class:

class MyMsq
{
private String text;
public MyMsg(String args)
{
text = args;
}

public void dispMsg()
{
System.out.println(text);
}

}

 
Didn't find what you were looking for? Find more on Multiple Applet Or get search suggestion and latest updates.




Tagged: