FileDocCategorySizeDatePackage
MetalPLAFPlugin.javaAPI DocExample965Wed Jul 17 00:28:14 BST 2002com.wiverson.macosbook.plugin

MetalPLAFPlugin

public class MetalPLAFPlugin extends Object implements com.wiverson.macosbook.SimpleEditPlugin

Fields Summary
Constructors Summary
public MetalPLAFPlugin()
Creates a new instance of MetalPLAFPlugin

    
Methods Summary
public voiddoAction(com.wiverson.macosbook.SimpleEdit frame, java.awt.event.ActionEvent evt)

        try
        {
            javax.swing.UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
            javax.swing.SwingUtilities.updateComponentTreeUI(frame);
            frame.setStatusText("Using Metal.");
        } catch (Exception ex)
        {
            frame.setStatusText("Failed loading Metal L&F.");
        }
    
public java.lang.StringgetAction()

        return "Use Metal";
    
public voidinit(com.wiverson.macosbook.SimpleEdit frame)

        frame.setStatusText("Loaded MetalPLAFPlugin");