FileDocCategorySizeDatePackage
StdOutButtonUI.javaAPI DocExample2163Mon Nov 09 12:45:52 GMT 1998None

StdOutButtonUI

public class StdOutButtonUI extends ButtonUI

Fields Summary
private static StdOutButtonUI
instance
private AccessListener
listener
Constructors Summary
Methods Summary
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)


  // Return the single instance. If this is the first time, we create the
  // instance in this method too.
       
    if (instance == null) {
      instance = new StdOutButtonUI();
    }
    return instance;
  
public java.awt.InsetsgetDefaultMargin(javax.swing.AbstractButton b)

    return null; // not called since we're auxiliary
  
public voidinstallUI(javax.swing.JComponent c)

    JButton button = (JButton)c;
    button.addFocusListener(listener);
  
public voidpaint(java.awt.Graphics g, javax.swing.JComponent c)

  
public voiduninstallUI(javax.swing.JComponent c)

    JButton button = (JButton)c;
    button.removeFocusListener(listener);
  
public voidupdate(java.awt.Graphics g, javax.swing.JComponent c)