Link to home
Start Free TrialLog in
Avatar of Tolgar
Tolgar

asked on

How to use a new line character for a text of an image in JAVA SWT?

Hi,
I am working on a GUI in Java SWT and I need to write part of the text of an image to a new line.

However, \n and any other html fomratting did not work.

This is the code snippet I have:

item_SaveSelections = new ToolItem(custToolbar_CheckConfiguration.getToolBar(), SWT.PUSH);
item_SaveSelections.setImage(image_floppy_disk); item_SaveSelections.setText("Save selected items"); 

Open in new window



What I want to do is to put a new line character after the word "Save".

Can you please help me with that?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial