FileDocCategorySizeDatePackage
IconEditor.javaAPI DocExample658Thu Oct 24 20:14:22 BST 2002None

IconEditor

public class IconEditor extends JLabel implements ChangeListener

Fields Summary
JSpinner
spinner
Icon
icon
Constructors Summary
public IconEditor(JSpinner s)

    super((Icon)s.getValue(), CENTER);
    icon = (Icon)s.getValue();
    spinner = s;
    spinner.addChangeListener(this);
  
Methods Summary
public javax.swing.IcongetIcon()

 return icon; 
public javax.swing.JSpinnergetSpinner()

 return spinner; 
public voidstateChanged(javax.swing.event.ChangeEvent ce)

    icon = (Icon)spinner.getValue();
    setIcon(icon);