Reputation: 29
I got stuck in java at the paint method. Printing out special letters with System.out
will work but not if I'm trying to paint it with g.drawString()
.
This will work:
System.out.println("\u2197");
This will not:
g.drawString("\u2197", 20, 20);
I'm getting only rectangles on my screen but not the sign.
Upvotes: 1
Views: 200
Reputation: 10346
You should use a font which have the symbols you are trying to display.
Upvotes: 5