Solved

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

Posted on 2001-07-20
4
259 Views
Last Modified: 2013-12-14
How to write( cut and paste , Drag and drop)general codes in swing.
0
Comment
Question by:sanroses
[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
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

690 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