This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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