简体   繁体   中英

SWT on OS X: how to handle reopen events

Usually, on OS X when a user clicks the dock icon of a running application, it will show a window - either brings an existing one to front, de-iconifies an existing one or creates a new one.

How to provide a call-back which is invoked when clicking the dock icon of an SWT application?

Have a look at SWT: how to handle application events correctly on OS X

Also, if you just want to see when a window (or Shell in SWT) is shown, then attach an SWT.Activation listener...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM