Solved

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

Posted on 2001-07-20
4
253 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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…
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now