Home Java Example Java Swing Data Transfer

Related Tutorials


 
 

Share on Google+Share on Google+

Data Transfer

Advertisement
Swing supports data transfer through drag and drop, copy-paste, cut-paste etc. Data transfer works between Swing components within an application and between Java and native applications.

Data Transfer

     


Swing supports data transfer through drag and drop, copy-paste, cut-paste etc. Data transfer works between Swing components within an application and between Java and native applications. The ability of data transfer is beneficial to programs between Java applications, between components etc.

There are two ways to transfer data. These are:

1.
The diagram below displays the Drag and drop (DnD) functionality of Swing. 

 

 

2. The diagram below displays the cut/copy and paste functionality of Swing. That is the clipboard transfer via cut/copy and paste. The path of the data is shown by the arrows.

 

 

To be more precise, first of all the bundling of data takes place into a package known as Transferable to begin Data Transfer. Then the data gets extracted by an object i.e. TransferHandler from the Transferable which is provided by the component.

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 19, 2008

Related Tutorials

Discuss: Data Transfer   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:3
kiranraj
September 16, 2011
learning

good
Rahul Kr Banik
February 11, 2012
Trojan&virus etc

Sir , is it possible to make any type of virus ,trojan, warms etc with the help of java if it is possible then plz snd some example with little bit of explanation .(i dont have any intention to harm any one i just want to know) that's all. Your thankfull, Rahul kr banik
mr
September 22, 2012
java

i like u
DMCA.com