Solved

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

Posted on 2013-11-19
1
310 Views
Last Modified: 2013-11-20
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,
0
Comment
Question by:Tolgar
1 Comment
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 39661114
Unfortunately, the answer is... "It can't be done!"

Can you use a shorter label, eg. Save, and then put more useful information in a tooltip with  item_SaveSelections.setToolTipText("Save all selected items"); ?
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question