The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Displaying text using a font

Posted by Hiran on February 15, 2002 at 1:28 PM

I was looking at the documentation for the Font class, and I was wondering how I would display text using a certain font. For example, if I have a JTextArea, how could I display the words "Hello World!" using a specified font instead of the default font that text in JTextAreas are displayed in?
Hiran




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us