Author: Kevin Spratling
Date: 08:31:32 06/25/02
Go up one level in this thread
I wrote my Java engine to use Winboard so I could avoid writing a GUI :) I don't know if you're writing an application or an applet. If I were writing a GUI as an applet for a browser, then I would use AWT to make it usable for people with older browsers. If I were writing an application I would use Swing. In Swing I would probably just make the board a JPanel so I would have more control. I would keep the board/square graphics separate from the piece graphics. Design the piece graphics as GIF files with transparent backgrounds and then sliding pieces are no problem. You should turn on doublebuffering for the JPanel to make things smooth. If you use AWT then you would use a java.awt.Panel instead. Everything would be pretty much the same except you'd have to do the doublebuffering yourself. It's not hard and there is plenty of information about it available on the net. -Kevin
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.