[messages] [Module Support] Drawing Java Components On Game Pieces

Brent Easton b.easton at exemail.com.au
Thu May 8 00:17:56 CEST 2014


It is probably drawing the JLabel, but in the wrong place where you
can't see it. Swing components aren't really supposed to be used in that
way.

Try using the Graphics class directly to draw to see if you can get
anything happening:

g.setColor(Color.red);
g.setFont(new Font("Dialog", 0, (int) (14 * zoom));
g.drawString("Hello", x, y);

_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=44855#p44855


More information about the messages mailing list