Mega Code Archive

 
Categories / Java Tutorial / SWT
 

Creating Your Own Dialogs

To create your own dialog, you do the following: Subclass org.eclipse.swt.widgets.Dialog. Implement a method named open() that returns an object appropriate to your dialog's purpose. In open(), create the window, create the controls and event handlers (including controls and event handlers to dismiss the dialog), and display the window. Provide getters and setters for any data.