FileDocCategorySizeDatePackage
SynthArrowButton.javaAPI DocJava SE 6 API3420Tue Jun 10 00:26:54 BST 2008javax.swing.plaf.synth

SynthArrowButton

public class SynthArrowButton extends JButton implements SwingConstants, UIResource
JButton object that draws a scaled Arrow in one of the cardinal directions.
version
1.18, 03/15/07
author
Scott Violet

Fields Summary
private int
direction
Constructors Summary
public SynthArrowButton(int direction)

        super();
        super.setFocusable(false);
        setDirection(direction);
        setDefaultCapable(false);
    
Methods Summary
public intgetDirection()

        return direction;
    
public java.lang.StringgetUIClassID()

        return "ArrowButtonUI";
    
public voidsetDirection(int dir)

        direction = dir;
        putClientProperty("__arrow_direction__", new Integer(dir));
        repaint();
    
public voidsetFocusable(boolean focusable)

public voidupdateUI()

        setUI(new SynthArrowButtonUI());