Excellent. i made a bufferedimage that i draw the board and pieces in high quality and if there’s a piece selected and the mouse is down, it draws it in ordinary quality straight onto the bufferstrategy.
it added a few new nice features that i was thinking of putting into the game anyway… the piece comes to the front if you hold your mouse down on it for a second (it would be faster for faster computers i’ve no doubt) so it’s like being able to check what piece is hidden behind another… now… gotta have it leave a ghost of the original piece behind when i move it… that would be really useful.
thanks for the rendering hints tip. that works excellent!
I was hoping to maintain as close a quality that 3ds would render, this does it.
anyway here’s a demo of the improved graphics. let me know what you think and if you have any tips on making the time it takes for the piece to be ‘movable’ after you press the mouse down, let me know.
the old file has been updated, executable JAR. just unzip it for the source as well.
http://www.users.bigpond.com/mattandlaura/JMChess.jar
edit: Just discovered a really bad bug, which is caused by me having the MouseListener call most of the render methods. clicking repeatedly on a piece will cause it to hang until it has re-rendered the board as many times as you clicked…