Package org.apache.harmony.tools.policytool.control

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


     */
    public MainFrame( final String policyFileName ) {
        super( Consts.APPLICATION_NAME );

        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.tools.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.