how to get contents from jtextpane


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: how to get contents from jtextpane

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    2

    how to get contents from jtextpane

    the textpane may contain many images and multiple fonts and text in
    different colors...
    so how can i get the contents from this textpane...
    how do i know that where the text in different color and where the images are embeded
    becuze in normal textarea we can get the text by getText() method
    becauze only text can be present in textarea...but the textpane can contain different kind of contents..so how can we get contents from
    jtextpane and send content of jtextpane to mail

  2. #2
    Join Date
    Feb 2006
    Posts
    25
    I've never used JTextPanes but this stuff looked helpfull

    here's the official java class description page

    and here's the java tutorial for JTextPanes

    it looks to me like to get the attributes of the text you'll have to use
    public AttributeSet getCharacterAttributes()

  3. #3
    Join Date
    Mar 2006
    Posts
    2

    how to content from textpane??

    how to get content(text, is formmated, color is changed, picture also added to textpane) from textpane, how those elements are send to mail. with out losing formatting.

Similar Threads

  1. Replies: 5
    Last Post: 05-27-2008, 11:17 AM
  2. JTextPane Visualization Problem!
    By sabbir in forum Java
    Replies: 1
    Last Post: 10-20-2005, 10:33 AM
  3. Replies: 1
    Last Post: 03-16-2005, 05:45 PM
  4. Searching contents of a table
    By cliff williams in forum Web
    Replies: 1
    Last Post: 11-29-2001, 06:38 PM
  5. C# Debugging - Displaying Array Contents
    By Keith Wedinger in forum .NET
    Replies: 0
    Last Post: 02-13-2001, 01: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center