Results 1 to 3 of 3
  1. #1
    RichersooN is offline Senior Member
    Join Date
    Jan 2011
    Location
    Rizal Province, Philippiines
    Posts
    167
    Rep Power
    0

    Default Hi please help me with my program - highlight specific text

    Hi i want to create a program in Java, I want it to highlight specific text from a long story paragraph.. I want to use swing, I want to put the story paragraph to a JTextArea or JEditorPane, can I know how can I achieve to highlight specific text in from it?

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,234
    Rep Power
    7

    Default Re: Hi please help me with my program - highlight specific text

    Java Code:
    textComponent.getHighlighter().addHighlight(...);

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: Hi please help me with my program - highlight specific text

    Moved from New to Java. In future, please post in an appropriate subforum.

    db

Similar Threads

  1. Highlight text on playing audio
    By archanaanbu in forum Java Applets
    Replies: 1
    Last Post: 02-22-2011, 01:34 PM
  2. highlight text
    By Saran185 in forum AWT / Swing
    Replies: 2
    Last Post: 01-28-2011, 03:24 PM
  3. Is it possible to highlight/select text in a JTextArea
    By AJArmstron@aol.com in forum New To Java
    Replies: 29
    Last Post: 04-29-2010, 07:05 PM
  4. Replies: 0
    Last Post: 01-31-2010, 05:46 AM
  5. How to highlight text by drag and selection
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-25-2008, 10:35 AM

Posting Permissions

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