0

Hi everyone,

I have a text area and a button on a frame and there's some text in the text area. What i need is when the user clicks the button whatever the text selected by the user in the text area and not all the text in the text area is bolded.

I am only using awt components and not any swing components.

Can someone show me or e-mail me a sample program or sample codings or part of the sample program on how this can be done.

My e-mail is freesoft_2000@yahoo.com

I really hope someone can help me.

Thank you

Yours Sincerely

Richard West

2
Contributors
3
Replies
4
Views
12 Years
Discussion Span
Last Post by nanosani
0

I think you can use getSelectedText and setSelectedText methods of text area. I dont know about the awt components but I use them in swing.

0

hi everyone,
I checked the JTextArea api and could not find the setSelectedText method that you mentioned. Am i missing something.
Maybe you can tell me where you found this api

Thank you

Your sincerely

Richard West

0

Oops !! that method was written by myself when I was making a word pad about two months ago... I searched for it but didnt find it ... I'll post it whenever I find it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.