Results 1 to 3 of 3

Thread: help me

  1. #1
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default help me

    hello friends,

    this is my 1st post to all of u.
    I want to select text from jtext area and wants to change the color using jcolor chooser.
    how i can do it please provide me help:)

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    Have you read the API doc for the JTextArea? I do NOT see any way to change the color of selected text with that component. You will have to use a component that has that capability. Perhaps a JEditorPane. Use a Search for coding examples.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •