Logo Search packages:      
Sourcecode: javamorph version File versions  Download package

javamorph::CMain::CMain (  )  [inline]

Constructor. Laying out the applicaiton window.

Definition at line 63 of file CMain.java.

References frame, left, right, and sep.

Referenced by main().

                  {
        /* Load application window icon. */
        ClassLoader loader = ClassLoader.getSystemClassLoader();
        InputStream in = loader.getResourceAsStream("JavaMorph.png");
        try{
            BufferedImage icon = ImageIO.read(in);
            this.frame.setIconImage(icon);
        }catch(Exception e){
            System.err.println(e.getMessage());
            e.printStackTrace();
        }
        /* Initialize components. */
        this.setLayout(this);
        this.add(left);
        this.add(right);
        this.add(sep);
        this.frame.setLocation(50, 50);
        this.frame.getContentPane().add(this);
        this.frame.addWindowListener(this);
        this.frame.pack();
        this.frame.setVisible(true);
    }


Generated by  Doxygen 1.6.0   Back to index