[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] SWT Label eliminates "&" character
|
What is the reason not to have your logic a little bit more complex?
I would say Label.setText("A&G".replace("&", "&&"))
is not too much more complex than
Label.setText("A&G")
regards,
Jordi
--- On Tue, 7/28/09, Khodke (EXT), Pravin <pravin.khodke.ext@xxxxxxxxxxx> wrote:
> From: Khodke (EXT), Pravin <pravin.khodke.ext@xxxxxxxxxxx>
> Subject: [platform-swt-dev] SWT Label eliminates "&" character
> To: "platform-swt-dev@xxxxxxxxxxx" <platform-swt-dev@xxxxxxxxxxx>
> Date: Tuesday, July 28, 2009, 4:39 AM
>
> I
> need to print "&" in my Label but it skips
> while rendering.
>
> For
> Example when I say Label.setText("A&G") it
> prints AG.
>
> I
> can overcome this problem using && but using this
> makes my logic more
> complex so I need to know some other way of achieving
> this.
>
>
>
> Regards,
>
> Pravin
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>