I am lookin for Example on How to use Dialog Class? a) Is Dialog a Component? b) How to add Dialog to a Container? Expecting answer from Bartender!!!
posted 17 years ago
<CODE>Dialog</CODE> is a subclass of <CODE>Window</CODE> therefore it cannot be added to a <CODE>Container</CODE>. It's the exception, BTW. <CODE>Window</CODE>is also a<CODE>Component</CODE> since it is a<CODE>Container</CODE>. Please refer to the AWT class hierarchy in my Web page dedicated to Java Programmer Certification. To see a <CODE>Dialog</CODE>in action go to my HTTP Header Applet page and clear out the URL field and hit ENTER. You'll get a <CODE>Dialog</CODE> with an error message. The code is freely available.
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD