Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Copy formatted text from JEditorPane/JTextPane

  1. #1
    Junior Member
    Join Date
    Dec 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Copy formatted text from JEditorPane/JTextPane

    Hi, all.
    I have the following question.
    Is it possible to preserve the style of a text copied from a JEditoPane/JTextPane?
    Basically, I have this JTextPane, and I want to be able to copy the formatted output exactly as it is. Can you please give me an advice?


    I found this answer, it's exactly what I have been searching for:
    http://www.anjuke.tech/questions/148...t-in-jtextpane
    thanks, man, I owe you a beer
    Last edited by entropy; January 1st, 2018 at 05:25 AM. Reason: Solved

Similar Threads

  1. How to insert text without formatting it in jtextpane
    By arushee in forum AWT / Java Swing
    Replies: 8
    Last Post: May 14th, 2014, 09:37 AM
  2. [SOLVED] JTextPane add text from bottom upwards
    By Psyclone625 in forum AWT / Java Swing
    Replies: 4
    Last Post: November 15th, 2013, 06:05 PM
  3. How to add multiple jTables (components) to jTextPane or JEditorPane
    By anchal87mca@gmail.com in forum AWT / Java Swing
    Replies: 1
    Last Post: September 19th, 2013, 09:01 AM
  4. JTextPane changing text color issues
    By donnierisk in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 30th, 2012, 11:29 AM
  5. getting text from JEditorPane
    By nasi in forum AWT / Java Swing
    Replies: 1
    Last Post: May 18th, 2010, 07:38 AM