Thanks Kazi for the reply.
I was looking solutin for jdk1.0...
Anyway I could find something as follows...
public Frame GetAppletFrame()
{
//Find out the Frame for the applet, which would be browser frame.
// Jdk1.0 do not have any method to find Applet's Frame.
// This function was need to overcome several
java bugs.
// 1. We need to pass Frame of the applet to the Dialog so that it can remain modal
// 2. Applet's Cursor change does not work and we need to use Frame's Cursor functions.
Frame appletFrame=null;
Component parent = getParent(); //Get Applet's parent, presumable the browser Frame.
while ( (parent != null) && !(parent instanceof Frame))
{
parent = parent.getParent();
}
if (parent instanceof Frame)
appletFrame = (Frame)parent;
else //Incase you do not find the frame..
appletFrame = new Frame();
return appletFrame;
}