I am not sure if 'Subject' is correct to this post, if not, sorry for the confusion.
I am new to applets, Swing, AWT.
To start with I took an example and changed as shown below, which works fine if main() is un-commented.
Below listed class is used in the above class.
Both classes are working fine.
Now I tried to convert them into an Applet as shown below:
Applet is called on my webpage as shown below:
Applet is loaded on my webpage, but none of the functionality is available for use, ie nothing happens when buttons are clicked. Please tell me where I went wrong.
Thanks,
Kriss.
Girish Limaye
Greenhorn
Joined: Jan 14, 2010
Posts: 1
posted
0
Implement the listener interfaces. It might work properly.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
So every time you click that button a new applet is created? I would not expect that to work at all, especially as it happens after the page has initially been created. Make the applet a proper part of the page from the beginning, and then call its public methods from JavaScript as necessary; search the FAQ for "LiveConnect" for more information.