• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing Font Size - Swing  RSS feed

 
Matthew Bryan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every Component has a get/setFont method. Check out the documentation for java.awt.Font for your font options.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!