Example usage for java.awt.dnd DragGestureListener interface-usage

List of usage examples for java.awt.dnd DragGestureListener interface-usage

Introduction

In this page you can find the example usage for java.awt.dnd DragGestureListener interface-usage.

Usage

From source file DragGesture.java

public class DragGesture extends JFrame implements DragGestureListener, Transferable {
    public DragGesture() {
        setTitle("Drag Gesture");
        JLabel left = new JLabel("text");
        DragSource ds = new DragSource();
        ds.createDefaultDragGestureRecognizer(left, DnDConstants.ACTION_COPY, this);

From source file Main.java

public class Main extends JFrame implements DragGestureListener {
    DragSource ds = new DragSource();
    String[] items = { "Java", "C", "C++", "Lisp", "Perl", "Python" };
    JList jl = new JList(items);

    public Main() {

From source file Main.java

public class Main extends JFrame implements DragGestureListener {
    String[] items = { "Java", "C", "C++", "Lisp", "Perl", "Python" };
    DragSource ds = new DragSource();
    JList jl = new JList(items);

    public Main() {

From source file GestureTest.java

public class GestureTest extends JFrame implements DragGestureListener {

    DragSource ds = new DragSource();

    String[] items = { "Java", "C", "C++", "Lisp", "Perl", "Python" };

From source file Main.java

public class Main extends JFrame implements DragGestureListener {

    DragSource ds = new DragSource();

    String[] items = { "Java", "C", "C++", "Lisp", "Perl", "Python" };

From source file ComplexExample.java

public class ComplexExample extends JFrame implements DragGestureListener {
    public ComplexExample() {
        JPanel left = new JPanel();
        left.setBackground(Color.red);

        JPanel right = new JPanel();

From source file GestureTest.java

public class GestureTest extends JFrame implements DragGestureListener {

    DragSource ds;

    JList jl;

From source file Main.java

class DraggableComponent extends JComponent implements DragGestureListener, DragSourceListener {
    DragSource dragSource;

    public DraggableComponent() {
        dragSource = new DragSource();
        dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this);

From source file ColorSource.java

/**
 * This simple component displays a solid color, and allows that color
 * to be dragged. Also, it copies the color to the clipboard when the 
 * user clicks on it.
 */
public class ColorSource extends JComponent implements ClipboardOwner, DragGestureListener, DragSourceListener {

From source file DragTest.java

public class DragTest extends JFrame implements DragSourceListener, DragGestureListener {

    DragSource ds;

    JList jl;