Package org.apache.harmony.jretools.policytool.control

Examples of org.apache.harmony.jretools.policytool.control.Controller


        final URL apahceIconURL = MainFrame.class.getResource( "apache.gif" );
        if ( apahceIconURL != null )
            setIconImage( new ImageIcon( apahceIconURL ).getImage() );

        final EditorPanel[] editorPanels = new EditorPanel[] { new GraphicalEditorPanel( this ), new DirectTextEditorPanel( this ) };
        final Controller    controller   = new Controller( this, editorPanels, policyFileName );

        buildGUI( controller );

        setLocation( Consts.MAIN_FRAME_START_POS_X, Consts.MAIN_FRAME_START_POS_X );
        setSize( Consts.MAIN_FRAME_WIDTH, Consts.MAIN_FRAME_HEIGHT );
        setDefaultCloseOperation( DO_NOTHING_ON_CLOSE );
        addWindowListener( new WindowAdapter() {
            public void windowClosing( final WindowEvent we ) {
                controller.exit();
            }
        } );
    }
View Full Code Here

TOP

Related Classes of org.apache.harmony.jretools.policytool.control.Controller

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.