Okay, so here is the problem.
g.setColor(Color.WHITE);
g.drawString("all your base belong to us",x,y);
The follow code makes it so that the string displayed is white and fully white.
My aim is to make a certain section of the string, say for example, I want the word "base" in that string to be a different color, yellow in this case.
The code that I would most likely use would be:
g.drawString("all your #ffd700base belong to us",x,y);
That code attempts to set the text to be yellow from 'base' all the way to the end of the sentence.
Though the output of that is:
https://i.stack.imgur.com/lB2WC.png
Ignore the background, just look at the string. The "#ffd700" becomes a part of the string which is then displayed.
This doesn't work, I cannot find a solution that does.