Home > Articles

  • Print
  • + Share This
This chapter is from the book

Q&A

  • Q Is there a way to change the font of text that appears on a button and other components?

  • A The JComponent class includes a setFont(Font) method that can be used to set the font for text displayed by that component. You will work with Font objects, color, and more graphics in Lesson 13, “Creating Java2D Graphics.”

  • + Share This
  • 🔖 Save To Your Account