Results 1 to 3 of 3
  1. #1
    akssingh400 is offline Member
    Join Date
    Feb 2011
    Posts
    6
    Rep Power
    0

    Unhappy How to email formatted text from a JTextPane

    Hey guys i m noew to this site
    i m sorry if i have posted in a wrong section

    I m trying to develop a Email client for that i have used a JTextPane so that the user can format the Message body as per his requirement.
    Now my problem is how can i get this formatted text so that i can mail it using java.mail package :o :o

  2. #2
    NRitH is offline Senior Member
    Join Date
    Feb 2011
    Posts
    118
    Rep Power
    0

    Default

    JTextPane has a getDocument() method which returns a Document object, which is the data model for all the text and formatting in the pane.

    See Document (Java 2 Platform SE v1.4.2)

  3. #3
    akssingh400 is offline Member
    Join Date
    Feb 2011
    Posts
    6
    Rep Power
    0

    Default

    Quote Originally Posted by NRitH View Post
    JTextPane has a getDocument() method which returns a Document object, which is the data model for all the text and formatting in the pane.

    See Document (Java 2 Platform SE v1.4.2)

    thanx a lot ma friend :)

Similar Threads

  1. Replies: 1
    Last Post: 01-30-2011, 09:05 AM
  2. Replies: 2
    Last Post: 08-21-2010, 10:53 AM
  3. Add text to JTextPane with color
    By PhQ in forum New To Java
    Replies: 4
    Last Post: 04-01-2010, 07:26 PM
  4. How to Get Text(RichText) from JTextPane
    By dorairaj in forum AWT / Swing
    Replies: 3
    Last Post: 07-15-2009, 07:33 AM
  5. Insert text at abitrary point in a JTextPane
    By angues in forum AWT / Swing
    Replies: 6
    Last Post: 02-02-2009, 04:08 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
  •