?
Solved

Java Programming question

Posted on 1997-08-30
2
Medium Priority
?
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 100 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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 will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

719 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