aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Changing Font Size - Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Changing Font Size - Swing" Watch "Changing Font Size - Swing" New topic
Author

Changing Font Size - Swing

Matthew Bryan
Greenhorn

Joined: Jun 10, 2004
Posts: 1
Hey,

Im building a Jeopardy game which needs to be visible to a classroom/group of people using a projector. I need a larger font size, and have no clue how to do it. I tried a JEditorPane but I need to incorporate swing buttons into the same frame, so that wont work. All I really need is a JLabel but with a larger font. Any ideas?

-Matt
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8265

Every Component has a get/setFont method. Check out the documentation for java.awt.Font for your font options.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Changing Font Size - Swing
 
Similar Threads
Loading Font through .ttf file but issue with the size
UML-tool Enterprise Architect
how to detect change of Text Size
Who should I buy mock or practice exams from for CX310-065?
MenuItem font setting