Results 1 to 7 of 7
  1. #1
    kumar.dinesh7 is offline Member
    Join Date
    May 2012
    Location
    Yamuna Nagar,Haryana,India
    Posts
    28
    Rep Power
    0

    Default How to make Selected Text BOLD in textarea???

    i am developing a notepad like application so i need a help that how to make selected text BOLD in textarea??
    dk

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

    Default Re: How to make Selected Text BOLD in textarea???

    What's a 'textarea'?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    kumar.dinesh7 is offline Member
    Join Date
    May 2012
    Location
    Yamuna Nagar,Haryana,India
    Posts
    28
    Rep Power
    0

    Default Re: How to make Selected Text BOLD in textarea???

    textarea is a multiple line textfield.....
    dk

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

    Default Re: How to make Selected Text BOLD in textarea???

    Since there isn't a class named 'textarea' (nor one named 'textfield' either) in the standard JDK -- neither in AWT or Swing, which are the subjects of discussion in this section -- you should ask wherever you got that class.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    kumar.dinesh7 is offline Member
    Join Date
    May 2012
    Location
    Yamuna Nagar,Haryana,India
    Posts
    28
    Rep Power
    0

    Default Re: How to make Selected Text BOLD in textarea???

    sorry its my mistake.....its not textarea its JTextArea.
    dk

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

    Default Re: How to make Selected Text BOLD in textarea???

    Have you read the API for JTextArea? What's the first sentence in the class description? What's the second-last word in that sentence?

    Go through the tutorial on Using Text Components (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components) to learn which class you should use instead.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    kumar.dinesh7 is offline Member
    Join Date
    May 2012
    Location
    Yamuna Nagar,Haryana,India
    Posts
    28
    Rep Power
    0

    Default Re: How to make Selected Text BOLD in textarea???

    thanx...
    dk

Similar Threads

  1. Replies: 0
    Last Post: 02-25-2010, 11:30 AM
  2. How to make text bold using java
    By gundyguyz in forum New To Java
    Replies: 2
    Last Post: 07-28-2009, 05:06 AM
  3. Appending text to TextArea
    By deepthought015 in forum AWT / Swing
    Replies: 3
    Last Post: 05-01-2009, 02:42 PM
  4. Replies: 2
    Last Post: 04-24-2009, 08:10 AM
  5. TODO in bold font in Text Editor
    By SSG_JJV in forum Eclipse
    Replies: 1
    Last Post: 03-25-2009, 10:42 PM

Posting Permissions

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