kohinoor2007
Programmer
Hi all,
Iam developing an applet ...
My applet is derived from the Swing JApplet.
Iam creating a custom dialog as follows from within my applet.
public class MyDialog extends JDialog
{
public MyDialog(JDialog owner,String title,boolean modal){
super(owner,title,modal);
}
}
Now my question is,what should I pass as 1st parameter to the MyDialog Constructor...
From Applet,I call somethings as
MyDialog test = new MyDialog((JDialog)getParent(),"test",true);
But casting to "JDialog" fails....
What is the best way to do the casting....
I want this dialog to be visible in the centre of my applet.....
Thanks in advance.....
Iam developing an applet ...
My applet is derived from the Swing JApplet.
Iam creating a custom dialog as follows from within my applet.
public class MyDialog extends JDialog
{
public MyDialog(JDialog owner,String title,boolean modal){
super(owner,title,modal);
}
}
Now my question is,what should I pass as 1st parameter to the MyDialog Constructor...
From Applet,I call somethings as
MyDialog test = new MyDialog((JDialog)getParent(),"test",true);
But casting to "JDialog" fails....
What is the best way to do the casting....
I want this dialog to be visible in the centre of my applet.....
Thanks in advance.....