Solved

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

Posted on 2001-07-20
4
258 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
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 …
Suggested Courses

732 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