Package com.mucommander.ui.button

Examples of com.mucommander.ui.button.ArrowButton


        add(new JScrollPane(dynamicList), BorderLayout.CENTER);

        JPanel buttonPanel = new JPanel(new GridLayout(2, 1));

        // Create 'Move item up' button
        JButton moveButton = new ArrowButton(dynamicList.getMoveUpAction(), ArrowButton.UP_DIRECTION);
        // Constrain the button's size which by default is huge under Windows/Java 1.5
        moveButton.setPreferredSize(new Dimension(19, 0));

        // Make the button non focusable so that it doesn't steal focus from the list
        moveButton.setFocusable(false);

        moveButton.setToolTipText(Translator.get("sortable_list.move_up"));
        buttonPanel.add(moveButton);

        // Create 'Move item down' button
        moveButton = new ArrowButton(dynamicList.getMoveDownAction(), ArrowButton.DOWN_DIRECTION);
        // Constrain the button's size which by default is huge under Windows/Java 1.5
        moveButton.setPreferredSize(new Dimension(19, 0));

        // Make the button non focusable so that it doesn't steal focus from the list
        moveButton.setFocusable(false);

        moveButton.setToolTipText(Translator.get("sortable_list.move_down"));
        buttonPanel.add(moveButton);

        add(buttonPanel, BorderLayout.EAST);
    }
View Full Code Here

TOP

Related Classes of com.mucommander.ui.button.ArrowButton

Copyright © 2018 www.massapicom. 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.