How to hide SWT Browser or run in headless mode?
问题 I took the rendered page from the SWT Browser and exported it to an image. My problem is that I am not able to get it to export properly when the shell is not visible. How can I go about hiding the browser and have the image export properly? I have tried setting shell.Visible() to false but that messes up the image export. This is how I export the image (not sure if this is necessary to the question): GC source = new GC (shell); Image image = new Image(display, browser.getClientArea());