So I have this method in my class GameText. My other class Text adds a new object GameText and then Game Text sets the image. I don't know how to go about getting the text to be bold. Any help?
public GameText(String text, int val) { //Set images for the prompt and related responses: want the prompt to look different. value = val; if (value == 0) { setImage(new GreenfootImage(" " + text + " ", 17, new Color(92, 7, 1), new Color(255, 255, 255, 50))); } else { setImage(new GreenfootImage(" " + text + " ", 16, Color.white, Color.black)); } }