Results 1 to 3 of 3
- 02-23-2011, 05:16 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 6
- Rep Power
- 0
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
- 02-23-2011, 07:39 PM #2
Senior Member
- Join Date
- Feb 2011
- Posts
- 118
- Rep Power
- 0
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)
- 02-23-2011, 07:59 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 6
- Rep Power
- 0
Similar Threads
-
How to make a text box, and info from text box gets sent by email
By nickburris in forum Advanced JavaReplies: 1Last Post: 01-30-2011, 09:05 AM -
How to create UPPERCASE formatted text field with mixed character input
By r00tb33r in forum AWT / SwingReplies: 2Last Post: 08-21-2010, 10:53 AM -
Add text to JTextPane with color
By PhQ in forum New To JavaReplies: 4Last Post: 04-01-2010, 07:26 PM -
How to Get Text(RichText) from JTextPane
By dorairaj in forum AWT / SwingReplies: 3Last Post: 07-15-2009, 07:33 AM -
Insert text at abitrary point in a JTextPane
By angues in forum AWT / SwingReplies: 6Last Post: 02-02-2009, 04:08 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks