Hi Simon,Thanks for your support.
but I don't know why your code does not work, I have added an action listener to a button and then write your code in the method actionPerformed as follows:
I have a Null pointer exception error, so I tried to add the code you provided as it is in the applet init method itself , no compilation error , on runtime error, but nothing happened!
Can you try it please,and tell me what is the problem?
Thanks,
Jimi.