Skip to main content

font color

Set Font and Color to Text of JTextArea Component in Java GUI

This is a continuation of my other tutorial entitled JTextArea Component in Java GUI. This tutorial will teach you how to set/select font and color for the JTextArea or JTextField component. 1. First and foremost, Open JCreator or NetBeans and make a java program with a file name of jTextArea.java. When you click the link above, copy first all the code there. import java.awt.*; import javax.swing