Jump to content

How to dynamically limit the length of TextField


psentosa

Recommended Posts

Hi all.

the following problem:

I have a table, which consists of several columns.

One of the columns should contain names of employee.

As usual, some names are longer than the others. And instead of letting a longer name printed in several lines (by activating the option "Strecth with overflow") I'd like to have the name cutted as soon as it reaches the width of the column.

I could somehow do this in java by calling the substring method on the source string to limit the name, but then you would get another problem, that in case a name consists of many "wide" letters (such as m and w), it'll need more spaces, and eventually be longer than the column too, and won't be printed at all.

would be very thankful for any hints (really need this urgently) :)

regards

 

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...