Thank Jim,
Here is my code:
import java.applet.Applet;
import java.awt.*;
public class myDialog extends Frame
{
Dialog md ;
myDialog()
{
md = new Dialog(this, "Error Message Window");
Panel p = new Panel();
Label l = new Label("No Server Response");
p.add(l);
md.add("Center" ,p);
Panel p2 = new Panel();
p2.setLayout(new FlowLayout());
Button ok = new Button("Retry");
Button cancel = new Button("Cancel");
p2.add(ok);
p2.add(cancel);
md.add("South",p2);
}
public static void main(
String args[])
{
myDialog theApp = new myDialog();
theApp.show();
}
}
I want to display dialog box without extending class to Frame?
Please let me know how can I do it?
THanks again
angela