When i write like This:

JTextArea area=new JTextArea();

then i can do this :

area.append("");

But when i write this :

JTextPane area=new JTextPane();

Then i can not write

area.append("");

so what is equal append() method when i use JTextPane????

thanks in advance

Appends the given text to the end of the document. It does nothing if the model is null or the string is null or empty.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.