I need to write a simple Java GUI application that, basically, allows the user to mark regions in a CT lung image.
To make the marking process easier, it is important that the program provides some basic tools/functionalities similar to a drawing program like MS Paint, like, for example, undo/redo, marker (brush) width and region fill.
Is there any Java library that provides components to write a drawing program?
I will suggest you to have a look at ImageJ. The big plus point is its root in medical domain and it is extensible through custom plug-in.
The following parts taken from ImageJ Wikipedia entry.
And if you don’t find a functionality as per your needs than it allows you to write your own plug-in.
The only problem that I can foresee is the amount of extra things that you have to ship along with the functionality you want to implement.
If you want to avoid the above problem then have a look at @Zack’s answer. In addition to that have a look at these: