title: Java image editor UI component
body: <p>I'm looking for a Java library that provides a simple image editor (like MS Paint) as a UI control.  If it's extendable so I can add new editing tools, that would be great.  I need to be able to save the edited image in either JPEG or BMP formats.  This library must be free, and ideally is open source with a license compatible with including in closed source software.</p>
  
  <p>My use case is I'm using Xuggle/MediaTool to extract frames from a video file.  I then need to have the user cut out certain pieces of the image to create a mask for use in a video processing routine.</p>