Hi all. I have a swing application that contains a button for changing the font, and a text area. I choosed the font Tahoma then I entered some text into the text area. now I want to enter some new text using another font. I changed the font to enter the text, but the problem is the old text has also changed. I tried various kinds like : JTextArea, JTextPane, JEditorPane.