drawing framework in java

313 views Asked by At

I'm looking for a java 2d drawing framework. I'm building an application in which you load an image, and you should be able to draw on top of the image. But everything which is drawn should be selectable, modifiable, have properties etc. Actually Eclipse GEF (or Graphiti) looked really good, but that seems to be focused on drawing diagrams only. I would also need support for freehand drawing, bezier curves, lines etc.

Anybody know something like Eclipse GEF but which also supports freehand drawing and bezier curves? Or maybe it does and I didn't look quite good enough?

1

There are 1 answers

3
Aaron Digulla On

You can quickly write a simple editors yourself using JPanel and a custom paintComponent() method. But creating a useful editor with undo, etc. is a lot of work.

Try jfig which is shareware (free for 30 days, then $30). It has a framework with editor components plus a default editor which you can tweak.