FileDocCategorySizeDatePackage
Font2DTestApplet.javaAPI DocSun JDK 1.4.2 Example3512Thu May 12 00:35:27 BST 2005None

Font2DTestApplet

public final class Font2DTestApplet extends JApplet
Font2DTestApplet.java
version
@(#)Font2DTestApplet.java 1.1 00/08/22
author
Shinsuke Fukuda
author
Ankit Patel [Conversion to Swing - 01/07/30]

Fields Summary
Constructors Summary
Methods Summary
public voidinit()

        /// Check if necessary permission is given...
        SecurityManager security = System.getSecurityManager();
        if ( security != null ) {
            try {
                security.checkPermission( new AWTPermission( "showWindowWithoutWarningBanner" ));
            }
            catch ( SecurityException e ) {
                System.out.println( "NOTE: showWindowWithoutWarningBanner AWTPermission not given.\n" +
                                    "Zoom window will contain warning banner at bottom when shown\n" );
            }
            try {
                security.checkPrintJobAccess();
            }
            catch ( SecurityException e ) {
                System.out.println( "NOTE: queuePrintJob RuntimePermission not given.\n" +
                                    "Printing feature will not be available\n" );
            }
        }
        
        final JFrame f = new JFrame( "Font2DTest" );
        final Font2DTest f2dt = new Font2DTest( f, true );
        f.addWindowListener( new WindowAdapter() {
            public void windowClosing( WindowEvent e ) { f.dispose(); }
        });

        f.getContentPane().add( f2dt );
        f.pack();
        f.show();