Help in SWT
i am developing a Plugin for eclipse 3.4 using SWT. I am adding a page in the eclipse preference. There is table and button in the that Page. On clicking the button a form with some fields need to be displayed as a dialog box. The value in the dialog box must be set in the table. I tried varies ways to display the form but it is not working. When i create a new instance of Display and Shell it results in a Invalid thread Exception. When i use the existing Display and Shell , no exception is raised and also not form is displayed .i have instantiated the Form and FormToolkit objects , but it does not get displayed.
please tell me how to display a form with certain fields like Label , text and Button when a button is clicked. can i use Windows instead of form to get data.