Strike through java.awt.Font

java, swing

Solution

So i found this, which works.

Font font = new Font("helvetica", Font.PLAIN, 12);
Map  attributes = font.getAttributes();
attributes.put(TextAttribute.STRIKETHROUGH, TextAttribute.STRIKETHROUGH_ON);
Font newFont = new Font(attributes); 

Problem

Is there a way to make a java.awt.Font strike through?

Original source