In SWT: do you know which is the Event to listen to, in order to identify that the SWT "Shell" object has been just opened and so open a new Shell at startup?
Thank you in advance.
In SWT: do you know which is the Event to listen to, in order to identify that the SWT "Shell" object has been just opened and so open a new Shell at startup?
Thank you in advance.
Most things use the first resize event on the Shell (there may be several resizes so be careful to only trigger on the first).
shell.addListener(SWT.Resize, event ->
{
... resize code
});
(Java 8 and above code)