wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes font size and style Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "font size and style" Watch "font size and style" New topic
Author

font size and style

oghenekaro EFEKODO
Ranch Hand

Joined: Oct 10, 2005
Posts: 56
hi,
pls,i'am a beginner in java and have being trying to write a code to (1).change the font size of a text.(2). change the font style of a text.(3)use dialog boxes effectively but failed.pls i need to tell me how to go about it and if you can help me with the code
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

You can use the setFont() method of a component. You can get more information in our Swing forum, so I'm transferring this thread to that forum.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: font size and style
 
Similar Threads
Font
get parameters from select
MenuItem font setting
font size, and dialogbox
Read the pdf file using java