Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:52 Go to next message
Eduard  is currently offline Eduard Friend
Messages: 29
Registered: September 2009
Junior Member
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 18:08 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
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 18:29 Go to previous messageGo to next message
Eduard  is currently offline Eduard Friend
Messages: 29
Registered: September 2009
Junior Member
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 18:30]

Report message to a moderator

Re: Text Widget and setText() is not working/edisplayed? [message #516684 is a reply to message #516672] Wed, 24 February 2010 18:29 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 07:09 Go to previous message
Eduard  is currently offline Eduard Friend
Messages: 29
Registered: September 2009
Junior Member
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: Wed Dec 01 21:01:41 GMT 2021

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

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

Back to the top