Calling the contents of public static void main in another class
<p>I have the classes Embed.java and watermarkdemo.java</p>

<p>There are some lines of code in the main method of Embed.java.
I want to call the main method of Embed.java in the actionPerformed () method when the user clicks on the insert button.
Please can someone give me the outline of how this can be done?</p>

<p>I hope I am clear in my problem and it is easy to understand what I am actually saying.
Thankyou</p>
