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

Joe12 j.sheppard88 at gmail.com
Fri May 9 19:18:55 CEST 2014

I'm now just going to use the Graphics object to draw the attribute
labels and icons directly.

I was able to make the JLabel text appear in the piece editor by setting
its size to be the size of the piece but I couldn't prevent it from
being drawn at 0,0:


public void draw(Graphics g, int x, int y, Component obs, double zoom) 
   piece.draw(g, x, y, obs, zoom);

    JLabel test = new JLabel("test");
    test.setBounds(0, 0, 69, 80);

Read this topic online here:

More information about the messages mailing list