Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How to change the colors of the Text along with different inputs?
How to change the colors of the Text along with different inputs? [message #610911] Mon, 03 October 2005 17:18
Eclipse UserFriend
Originally posted by: qingxing20052.gmail.com

Dear all:

I met one probelm and hope to get some helps from you.

* My scenario:
There are two buttons, A and B. When A is pressed, the word "A" which is
blue will appear in textArea. Whereas when B is pressed, the word "B" which
is red will appear in textArea. I used the following method:
A mouse down event:{
textArea.setForeground(Specific Color);}

The result: All the comment in textArea are changed along with different
pressings of A and B. E.g. When button A is firstly pressed, word "A" is
blue. After that button B is pressed, the previous word "A" and latter word
"B" are changed (red) both. It is not my expected. My expected result is:
"A" still remain in blue, only "B" is in red. I know the method
sefForeground is not fit for my requirement. But is there any other mehtod
that I can use?

Any suggestion is welcome.

I am looking forward to hearing from you.

thx for your kindness and helps.

B.W.

N.B
Previous Topic:VE PROJECT PLAN
Next Topic:How to change the colors of the Text along with different inputs?
Goto Forum:
  


Current Time: Tue Sep 24 15:44:51 GMT 2024

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

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

Back to the top