I'm trying to change the font size and font type for my project but how do I get it to display the font with the changes as part of a GreenfootImage? Here is what I have so far as well as current classes I imported.
import java.awt.font.*; import java.awt.font.TextAttribute; import java.text.AttributedString;
message= "Round Completed!";
AttributedString as = new AttributedString(message);
as.addAttribute(TextAttribute.SIZE, 24);
message = as.getIterator().getAttributes().toString();

