Thumbs
To balance my previous post somewhat, besides creating an editor for images, I’m also creating an imagebar with thumbnails. The image bar can be used to drag imagefiles into and to select the image that you want to edit. I have to say that, using ImageIO, it’s really easy to implement this. All you have to do is extend from JComponent and implement the paint() method to have the image drawn. Because of the way Java2D works, there is no need to figure out the coordinates of the image, it’s always relative to the component so you just use (0,0). With some fancy rendering of higlighting when mouse overed and a delete icon that pops when hovering it’s starting to look really nice: