I am working on SWT app. It works fine on windows, but when I run the same code on mac. I get a full screen button on right corner of my shell.
On clicking that full screen button the app stop responding and nothing happens. I want to disable the click on that fullscreen button.
display = Display.getDefault();
shell = new Shell(display, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
setDialogShell(shell);
getDialogShell().setLayout( new FormLayout());
getDialogShell().setFullScreen(false);
Please help. I have gone through this some link but didn't got how to disable that full screen button in mac.
This worked for me..
**** *EDIT* ***************
The above code is not running in windows, as no recognised "NSWindow" class. For using common code for both window and mac use the below code.
/// Check if OS is Window, Then change the code as follow