- user can select to either name the dragged file ".token.drag" or "<fileNamePrefix>_<fileNumber>" with file number incrementing by 1 each *DRAG* action. Note that if you cancel a drag-drop the file number still does get increased - i dont think you can check if the drop-action actually succeeded or not?!
Yes, you can.
Check the TransferableHelper code that is part of MapTool. In particular, the importData() method, IIRC.
- user can paste an image (like a win-screenshot made with PRINT key) from clipboard to tokentool)
This will be very handy.
- user can copy token-image to clipboard. (I think the transpareny gets lost with this but I dont see exactly why or have experience to handle it)
This might be because the clipboard supports JPEG and not PNG? It may work on a Unix system but someone will need to test that.
I'll try applying your patch some time over the weekend and playing with it.
@Jay: Thanks for the hint. If I get time I'll take a look at it. That's something that could be deferred to a separate thread as long as the first one is loaded synchronously (so it appears correctly in the dropdown list).
Hm, what happens if the data model for the dropdown list were to use file: URLs? Then Swing would ask for the images and they could be loaded as-needed. In the meantime a separate thread could be loading them. If the ImageIO cache were turned on that should work out...