Skip to content
daveray edited this page Aug 3, 2011 · 5 revisions

Seesaw has some basic support for Java2D drawing, using the (canvas) function to create a paintable panel. See src/seesaw/graphics.clj and src/seesaw/examples/canvas.clj.

src/seesaw/examples/scribble.clj show how to do mouse interaction with a canvas.

Note that the (seesaw.core/paintable) macro can also be used if you'd like to paint custom graphics over an existing widget type. There's an example in src/seesaw/examples/xyz_panel.clj. See also this post for more info on custom painted widgets.

Clone this wiki locally