• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will give that a try!
Thanks a lot!
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic