This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

drag images from windows/mac into swing  RSS feed

 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys : Does anybody know of a simple utility which
allows dragging of system clipboard images from mac/windows
into swing (although the actual bytes of the image
are preferabble, the URL will do just fine ) ?
 
Brian Cole
Author
Ranch Hand
Posts: 935
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jay vas:
Hi Guys : Does anybody know of a simple utility which
allows dragging of system clipboard images from mac/windows
into swing (although the actual bytes of the image
are preferabble, the URL will do just fine ) ?


It is certainly possible. How exactly the drag will be represented depends on the environment.

You may want to grab the code at http://examples.oreilly.com/jswing2/code/ch24/UberHandler.java,
run it, and drag images onto the frame from various places on various operating sytems and see what you get.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!