Click to See Complete Forum and Search --> : Doubt working with Dialog Box


sat
August 3rd, 1999, 07:04 AM
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.

August 3rd, 1999, 08:24 AM
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.

August 4th, 1999, 01:13 AM
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.