File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Can anyone please hurry help me?!?!?!? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Can anyone please hurry help me?!?!?!?" Watch "Can anyone please hurry help me?!?!?!?" New topic
Author

Can anyone please hurry help me?!?!?!?

ji yan
Greenhorn

Joined: Feb 15, 2002
Posts: 7
I am trying to use dialogbox in an applet but the
constructor of a dialog class only accept a frame object as its first parameter,not an applet!Here is how does its constructor look like:
Dialog(Frame) //Constructs an initially invisible Dialog with an empty title.
Dialog(Frame, boolean) //Constructs an initially invisible Dialog with an empty title.
Dialog(Frame, String) //Constructs an initially invisible Dialog with a title.
Dialog(Frame, String, boolean) //Constructs an initially invisible Dialog with a title.
can anyone please tell me how can I construct a dialog box in an applet?
Thanks in advance
Ji Yan
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
when u create the dialog u can pass a null instead of a refrence to a parent.
like this:
MyDialog x=new MyDialog(null);
however, notice that using dialogs in applets is not recommended and will pop out warning to the user. this is to ensure that u r not trying to "fool" the user in thinking he is running a real application off the internet, when he is actually running an applet in the internet.
ji yan
Greenhorn

Joined: Feb 15, 2002
Posts: 7
I will give that a try!
Thanks a lot!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can anyone please hurry help me?!?!?!?
 
Similar Threads
How to create a Frame or a Dialog without the Frame Bar
Dialog problem
clarification about Dialog container
Model Dialog From JApplet
invoking dialog box from Applet results in Hang of IE browser