Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Text Widget and setText() is not working/edisplayed?(setText(), append(), inser() is not working?)
icon5.gif  Text Widget and setText() is not working/edisplayed? [message #516672] Wed, 24 February 2010 12:52 Go to next message
Eclipse UserFriend
Hello RAP-Community!

I am using RAP 1.3 M3.

Then I want to set a text on a Text-Widget it is not beeing displayed.

My code:

titleField = new Text(parent, SWT.SINGLE);

titleField.setText("TEST");
titleField.insert("TEST");
titleField.append("TEST");


Nothing of the above works. No text is displayed. The textfield is empty. Is that a bug or am I doing something wrong?

Best regards
Eduard
Re: Text Widget and setText() is not working/edisplayed? [message #516676 is a reply to message #516672] Wed, 24 February 2010 13:08 Go to previous messageGo to next message
Eclipse UserFriend
Eduard,

I assume that you are doing something wrong, though I'm not sure what.
Did you try the code with 1.3M5 oder CVS HEAD?
Can you see the text widget at all (setBackground)?
What does getText() return?
If you still belive that you found a bug, please file a bugzilla with
code to reproduce the problem.

HTH
Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com

On 24.02.2010 18:52, Eduard wrote:
> Hello RAP-Community!
>
> I am using RAP 1.3 M3.
>
> Then I want to set a text on a Text-Widget it is not beeing displayed.
>
> My code:
>
>
> titleField = new Text(parent, SWT.SINGLE);
>
> titleField.setText("TEST");
> titleField.insert("TEST");
> titleField.append("TEST");
>
>
> Nothing of the above works. No text is displayed. The textfield is
> empty. Is that a bug or am I doing something wrong?
>
> Best regards
> Eduard
Re: Text Widget and setText() is not working/edisplayed? [message #516679 is a reply to message #516672] Wed, 24 February 2010 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rüdiger!

The textfield is visible (see that http://virtualcom.de/TextField.jpg screenshot, its the field with the red background). It is also possible to type text into it.

The returned value is correct. It's the text that I've set with setText(). If I type something in, the returned value is also correct, but it's just not displayed if I use setText().

I'll try it with the newest milestome tomorrow. Maybe that already have been fixed.

Best regards
Eduard

[Updated on: Wed, 24 February 2010 13:30] by Moderator

Re: Text Widget and setText() is not working/edisplayed? [message #516684 is a reply to message #516672] Wed, 24 February 2010 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi Eduard,

I've just checked it with latest from CVS HEAD and all 3 methods work as
expected in Windows FF 3.6 and IE 8.

Best,
Ivan

On 2/24/2010 7:52 PM, Eduard wrote:
> Hello RAP-Community!
>
> I am using RAP 1.3 M3.
>
> Then I want to set a text on a Text-Widget it is not beeing displayed.
>
> My code:
>
>
> titleField = new Text(parent, SWT.SINGLE);
>
> titleField.setText("TEST");
> titleField.insert("TEST");
> titleField.append("TEST");
>
>
> Nothing of the above works. No text is displayed. The textfield is
> empty. Is that a bug or am I doing something wrong?
>
> Best regards
> Eduard
Re: Text Widget and setText() is not working/edisplayed? [message #516777 is a reply to message #516672] Thu, 25 February 2010 02:09 Go to previous message
Eclipse UserFriend
Thank you for your help!

With RAP 1.3 M5 it works perfectly.

Best regards
Eduard
Previous Topic:Help integration question
Next Topic:Existing RCP / RAP compatibility classes
Goto Forum:
  


Current Time: Sun Aug 31 07:42:00 EDT 2025

Powered by FUDForum. Page generated in 0.03863 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top