Originariamente inviato da fleapak
sono andato a guardare la classe Font ma non esiste nessuna variabile"UNDERLINE"...
Dalla documentazione di java.awt.Font:

Font supports most TextAttributes. This makes some operations, such as rendering underlined text, convenient since it is not necessary to explicitly construct a TextLayout object. Attributes can be set on a Font by constructing or deriving it using a Map of TextAttribute values.