public void paint(Graphics g) { // paint method Image myAction = getImage(getDocumentBase(), action); g.drawString(myDuke.getAction(), 10, 165); g.drawString(myDuke.getMessage(), 10, 180); g.drawImage(myAction, 20, 50, Color.white, this); }