In a Nutshell
This widget adds consistent cross-browser support for the famous HTML Canvas to the Google Web Toolkit.
gwt-canvas Demo
To see gwt-canvas in action check out this interactive demo and/or this MasterMind game.
If you haven't heard about the canvas yet, learn more at Mozilla's tutorial (covers only native Canvas usage).
Using gwt-canvas in your Project
Just add gwt-canvas-<version>.jar to your Build Path, and add the following line to your GWT XML Module:
<inherits name='gwt.canvas.gwt-canvas'/>
Now import, create and add a canvas widget to your code and you are ready to go:
RootPanel.get().add(new Canvas());
Please note that GWT 1.5 or higher is mandatory for using gwt-canvas!
Browser Compatibility
The gwt-canvas widget has been successfully tested on these browsers:
- Internet Explorer 6.0+
- Firefox 1.5+
- Opera 9.0+
- Safari 3.0+
- Chrome 2.0+
Feedback
If you have a question or just want to give some feedback, please use the discussion group.