FileDocCategorySizeDatePackage
AquaPLAFPlugin.javaAPI DocExample1026Wed Jul 17 00:28:14 BST 2002com.wiverson.macosbook.plugin

AquaPLAFPlugin

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

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

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

                try
        {
            javax.swing.UIManager.setLookAndFeel("com.apple.mrj.swing.MacLookAndFeel");
            javax.swing.SwingUtilities.updateComponentTreeUI(frame);
                        frame.setStatusText("Using Aqua.");

        } catch (Exception ex)
        {
            frame.setStatusText("Failed loading Aqua L&F.");
        }
    
public java.lang.StringgetAction()

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

                frame.setStatusText("Loaded AquaPLAFPlugin");