Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in changing the font

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

any ideas ??
 
Anand Karia
Ranch Hand
Posts: 156
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi john

try this!!!


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic