JTextPane Help????

Discussion in 'OT Technology' started by Pogi, Feb 21, 2004.

  1. Pogi

    Pogi Official Pointy Boot Guey Ver 1.0

    Jan 3, 2001
    Likes Received:
    North Of Chi-town
    Is there anyway I can use a JTextPane like a JTextArea???

    I would like to be able to put text at the end of the JTextPane, like you are able to do with JTextArea's method "append".

    JTextPane only has "setText" which only puts out one thing to the screen at once.

    I made my own method to do it, but its really slow. :(

    public static void append(JTextPane TP, String x)

    Temp = TP.getText();
    TP.setText(Temp + x);

    Any Help?? :(

Share This Page