Short of copying the character to the clipboard and pasting it inside my string, is there a way to draw a greek letter (or for that matter, any unicode character)? I know the code for the character I am trying to draw is U+03F4
according to here. I have tried the following:
g.drawString("U+03F4", 100, 100); // works as a string literal as it should
g.drawString("\U+03F4", 100, 100); // error: Illegal escape character
g.drawString("\\U+03F4", 100, 100); // thought I could trick it. Just draws "\U+03F4"
I saw in this question that the 'u' was lowercase but that didn't make any difference.
Why would this not be working?