Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2004
    Thanked 0 Times in 0 Posts

    Unhappy Problem with JTextPane&Document

    As I would like to show a number of text lines on the screen, I choose JTexPane and Document to do it like this:

    JTextPane content = new JTextPane();
    Document doc = content.getDocument();


    Since a number of text lines are inserted in "doc", I noticed that it caused my program worked much slowwer.

    Do you have any other ways to solve this problem?

    Thank you

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Thanked 0 Times in 0 Posts
    I think you need to provide more context to your post. Small things like what language you're using, the framework you're using and other vital information that'll allow people to decide whether their knowledge will be relevant to your question or not.

    (BTW: I can tell already that I can't help you with this but I thought it might be important for you to know that more information is better).
    Check out the Forum Search. It's the short path to getting great results from this forum.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts