List of usage examples for javax.swing TransferHandler subclass-usage
From source file DragPictureDemo.java
class PictureTransferHandler extends TransferHandler { DataFlavor pictureFlavor = DataFlavor.imageFlavor; DTPicture sourcePic; boolean shouldRemove;
From source file DragFileDemo.java
class FileAndTextTransferHandler extends TransferHandler { private DataFlavor fileFlavor, stringFlavor; private TabbedPaneController tpc; private JTextArea source;
From source file ExtendedDnDDemo.java
abstract class StringTransferHandler extends TransferHandler { protected abstract String exportString(JComponent c); protected abstract void importString(JComponent c, String str);
From source file DragColorTextFieldDemo.java
/**
* An implementation of TransferHandler that adds support for dropping colors.
* Dropping a color on a component having this TransferHandler changes the
* foreground or the background of the component to the dropped color, according
* to the value of the changesForegroundColor property.
*/
From source file ListCutPaste.java
class ListTransferHandler extends TransferHandler { /** * Perform the actual data import. */ public boolean importData(TransferHandler.TransferSupport info) {
From source file DragPictureDemo2.java
class PictureTransferHandler extends TransferHandler { DataFlavor pictureFlavor = DataFlavor.imageFlavor; DTPicture sourcePic; boolean shouldRemove;