FileDocCategorySizeDatePackage
SynthArrowButton.javaAPI DocJava SE 5 API2677Fri Aug 26 14:58:10 BST 2005javax.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.15, 12/19/03
author
Scott Violet

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

        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 voidupdateUI()

        setUI(new SynthArrowButtonUI());