wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Problem in changing the font Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem in changing the font" Watch "Problem in changing the font" New topic
Author

Problem in changing the font

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

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

Joined: Sep 25, 2004
Posts: 156

Hi john

try this!!!




Love is GOD and GOD is Love.
Anand Karia
IT Concretor.......
M/s. Anand Karia Concreting IT
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in changing the font
 
Similar Threads
color in selected text in text area
font in chinese operating system
How to set the fontcolor and size for the selected text of text area ?
Creating an FX label with HTML formating
Exception