Solved

Java Programming question

Posted on 1997-08-30
2
208 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Desingning Refactoring existing code 2 31
jsp insert to database example 2 58
Which non-HTML GUI front end to use with Java? 3 50
Java program running SQL query 5 46
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…

679 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