Oh, actually Prompt's message is wrapped by default.
I'll be needing the breakline to show one or more error message. I think
I'll just extend Sheet (Prompt shows the it's message Label even when it's
empty or null) then accept a List of error messages and present it in bullet
form. I think this is a good extra component for Pivot

On Fri, Oct 2, 2009 at 9:28 AM, Todd Volkert <[email protected]> wrote:

> Right now, Label doesn't support line breaks (and Prompt uses a Label to
> display the message).  Try using a Label as the body component of the
> Prompt:
>
>             String message = "...";
>             Label body = new Label("...");
>             body.getStyles().put("wrapText", true);
>             Prompt.prompt(MessageType.WARNING, message, body, ownerWindow);
>
> -T
>
>
> On Thu, Oct 1, 2009 at 9:19 PM, Vicente de Rivera III <
> [email protected]> wrote:
>
>> Hi again,How do you add a line break in a Pivot component's text?
>> Specifically in the 'message' param of Prompt?
>>
>
>

Reply via email to