Tolgar
asked on
How to quit a GUI application in SWT?
Hi,
I am working on a GUI application and I use SWT.
I wonder how I can quit this application by clicking a button in the toolbar just like closing it by pressing the x sign on the corner of the window.
This is the code that creates the quit icon :
I am working on a GUI application and I use SWT.
I wonder how I can quit this application by clicking a button in the toolbar just like closing it by pressing the x sign on the corner of the window.
This is the code that creates the quit icon :
CustomToolbar custToolBar33333 = new CustomToolbar(compTB3, SWT.FLAT, "Next Actions");
item33333333 = new ToolItem(custToolBar33333.getToolBar(), SWT.PUSH);
item33333333.setImage(image_exit); item33333333.setText("Quit"); item33333333.setToolTipText("Quit the tool");
item3333333.addListener(SWT.Selection, toolBarListener);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.