Solved

Java Programming question

Posted on 1997-08-30
2
193 Views
Last Modified: 2010-04-16
How can I set a graphics image to the System Clipboard (as in Java 1.1.3 +). I want to use the System clipboard for cutting and pasting images.
0
Comment
Question by:maneeshsahu
2 Comments
 
LVL 4

Expert Comment

by:russgold
ID: 1226028
What kind of images?  There are many image formats, and not all are understood on all platforms.  Also, note that untrusted applets cannot use the system clipboard.  Are you writing an applet or application?
0
 
LVL 4

Accepted Solution

by:
rembo earned 50 total points
ID: 1226029

To transfer images you will have to use the mime types that are
part of the DataFlavor classes.  For a tutorial on how
to do this look at:

http://smaug.java.utoronto.ca/Resources/Local/jdk1.1/docs/guide/awt/designspec/datatransfer.html

For API references take a look at:

http://g.oswego.edu/dl/java/api/java.awt.datatransfer.DataFlavor.html

and

http://g.oswego.edu/dl/java/api/java.awt.datatransfer.Transferable.html#_top_
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 38
Java Options in Zimbra Server 2 52
How to convert String matching to regex in java 4 32
Android development question 2 37
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question