I would like to have a control with a two-line tooltip. For example a Label:
Label label = new Label( parent, SWT.NONE );
label.setText( "label text" );
label.setToolTipText( "one line\nsecond line" );
The documentation does not state anything regarding line breaks, however, on Windows, the tooltip shows two lines like desired:

Now, I would like to know how multi-line tooltips are shown on other platforms, in particular, Gtk3/Linux and macOS.
To summarize what @greg-449 and @Nobody said:
Line breaks in SWT tooltips appear consistently across major platforms: Windows, macOS, and Gtk3/Linux
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With