I’m using this code to get a popup message:
ti.displayMessage("Message name: " + message_name
, "Message text: " + message_text
, TrayIcon.MessageType.INFO);
How do I add more lines to this popup message box? For example, the 1st row is message_name. Then the next row is message_text. But what if I want to add more lines? Something like this:
ti.displayMessage("Message name: " + message_name
, "Message text: " + message_text
, "Message type: " + message_type
, "Message from: " + message_from
, TrayIcon.MessageType.INFO);
How can I solve this?
You can do the following in the second parameter:
Note the use of
\nwhich begins a new line, as you wanted.