Doubt working with Dialog Box
Hai,
I created a dialog box with parent as a frame. After executing the statment dialogbox.show(), i want the control back to the parent frame. i want the dialog box to be on top of the frame.I after executing some statements of frame, i want to dispose the frame.These statments contain some statments to set the properties of some components on the dialog box.
Re: Doubt working with Dialog Box
I understand that u want to use a modal dialog/modeless dialog.A modal dailog will remain in focus till it is disposed(dialogbox.dispose()) and u cannot go back to the frame.In a modeless dialog u can switch between dialog and the frame.The constructor of java.awt.Dialog takes boolean modal as a prameter.Specify tru for a modal dialog.
Re: Doubt working with Dialog Box
Thanks for responding to my doubt,
I did the same thing you told me,after placeing this doubt in codeguru.
any have thanks for responding to my doubt.