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 9 of 9

Thread: How to insert text without formatting it in jtextpane

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to insert text without formatting it in jtextpane

    GLOBAL MARKET, BY APPLICATIONS

    • List item
    • List item
    • List item
    • List item
    • List item
    • List item
    • List item


    I want to insert the above text in the same way as it looks above in jtextpane.I would be copying it from word and inserting it in jtextpane.Can anyone guide me with this.Because when i copy the text in jtextpane the bullets disappear.Can anyone please guide me.Also i dont want to use HTMLEditorKit.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to insert text without formatting it in jtextpane

    Can you make and post a small program that compiles, executes and shows the problem?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    May 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to insert text without formatting it in jtextpane

    I am just talking about copy and paste.I will be copying text from any word file which may contain bullets.After user copies it and paste it in a jtextpane,it should be displayed along with the bullets.BUt i am not understanding how to implement it.Can you guide me.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to insert text without formatting it in jtextpane

    Do you have a test program that can be executed to show the problem?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    May 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to insert text without formatting it in jtextpane

    No .I dont have a test program.I am working on developing an editor.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to insert text without formatting it in jtextpane

    .I dont have a test program
    That makes it hard to test and see the problem.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    May 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to insert text without formatting it in jtextpane

    But Sir cant you just guide me.my question is very clear.I just want someone to guide me.

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to insert text without formatting it in jtextpane

    I need an example program that has the problem.
    If you don't understand my answer, don't ignore it, ask a question.

  9. #9
    Junior Member
    Join Date
    May 2014
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to insert text without formatting it in jtextpane

    What you people don't understand is, that we are not in your mind. You know the problem you wanna solve, but we cannot read it, so we need something visual for us to be able to help you.

Similar Threads

  1. Text Formatting/left, right justify
    By Melac in forum What's Wrong With My Code?
    Replies: 6
    Last Post: December 12th, 2013, 03:50 AM
  2. [SOLVED] JTextPane add text from bottom upwards
    By Psyclone625 in forum AWT / Java Swing
    Replies: 4
    Last Post: November 15th, 2013, 07:05 PM
  3. Formatting a text file
    By ExtremophileElite in forum What's Wrong With My Code?
    Replies: 15
    Last Post: April 4th, 2013, 02:14 PM
  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

Tags for this Thread