Examples of DraggableStack


Examples of com.lightcrafts.ui.operation.drag.DraggableStack

        }
    }

    public static void main(String[] args) {

        final DraggableStack stack = new DraggableStack();

        stack.push(new DraggableLabel("A"));
        stack.push(new DraggableLabel("B"));
        stack.push(new DraggableLabel("C"));

        JButton add = new JButton("+");
        add.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    stack.push(new DraggableLabel("X"));
                }
            }
        );

        JButton remove = new JButton("-");
        remove.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    stack.pop();
                }
            }
        );

        JScrollPane scroll = new JScrollPane(stack);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.