Solved

How to write( cut and paste , Drag and drop)general codes in swing

Posted on 2001-07-20
4
255 Views
Last Modified: 2013-12-14
How to write( cut and paste , Drag and drop)general codes in swing.
0
Comment
Question by:sanroses
4 Comments
 
LVL 15

Expert Comment

by:ozymandias
ID: 6303614
I'm not sure what you mean by "general codes".

Drag and Drop in swing/java is implemented in the classes in java.awt.dnd.

Cut and paste can be done using the SystemClipboard.
Look at the getSystemClipboard() method of the Toolkit class.

There is a section of the java tutorial on Drag an Drop (http://java.sun.com/docs/books/tutorial/dnd/index.html).

There have aslo been several questions on it recently in this forum so it is probably worth checking the PAQ.
0
 
LVL 10

Expert Comment

by:Nushi
ID: 6305784
you will have to be more specific of what u need.

its 2 diffrent things.
Drag and drop can be writen with mouse listener for example
and text operations can be written with: DocumentListener

there isnt any single solution for this.
you will have to be more specific in describing your needs.

Nushi.
0
 
LVL 5

Expert Comment

by:vemul
ID: 7669573
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- To be PAQ'ed and points NOT refunded
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7714511
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how do i compare an object based on two fields 6 53
more than one jdk and one jre 1 41
hibernate jars 4 28
by zero exception 10 39
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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:
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

786 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