File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 3479

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem in changing the font