FileDocCategorySizeDatePackage
AntiAliasingDemo.javaAPI DocExample1702Mon Jan 09 11:02:00 GMT 2006None

AntiAliasingDemo

public class AntiAliasingDemo extends Object

Fields Summary
static Polygon
triangle
Constructors Summary
public AntiAliasingDemo()

        try {
            String metal =
                UIManager.getCrossPlatformLookAndFeelClassName();
            UIManager.setLookAndFeel (metal);
        } catch (Exception e) {
            e.printStackTrace();
        }
        
        JFrame frame = new JFrame ("Anti-Aliasing demo"); 
        frame.getContentPane().add (new JLabel ("Here are some shapes"),
                                    BorderLayout.NORTH);
        frame.getContentPane().add (new PrimPanel());
        frame.pack();
        frame.setVisible(true);
    
Methods Summary
public static voidmain(java.lang.String[] args)

        triangle = new Polygon();
        triangle.addPoint (105, 95);
        triangle.addPoint (195, 95);
        triangle.addPoint (150, 5);
    
        new AntiAliasingDemo();