This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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.