Revision 42449

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/Launcher.java
3728 3728
        // default packages will be selected.
3729 3729
        installPackageWizard.setSelectDefaultPackages(true);
3730 3730

  
3731
        // 1. Create the frame.
3732 3731
        JFrame frame = new JFrame(Messages.get("gvsig_package_installer"));
3733 3732

  
3734
        // 2. What happens when the frame closes?
3735 3733
        frame.addWindowListener(new WindowListener() {
3736 3734
            public void windowOpened(WindowEvent we) {
3737 3735
                logger.info("Open window installation.");
......
3763 3761
        });
3764 3762
        //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
3765 3763

  
3766
        // 3. Add the installer panel to the frame
3767 3764
        frame.getContentPane().add(installPackageWizard, BorderLayout.CENTER);
3768 3765

  
3769
        // 4. Size the frame and center on the screen
3766
        URL iconURL = getClass().getResource("/images/main/install-icon.png");
3767
        if( iconURL!=null ) {
3768
            ImageIcon icon = new ImageIcon(iconURL);
3769
            frame.setIconImage(icon.getImage());
3770
        }
3770 3771
        frame.pack();
3771 3772
        frame.setLocationRelativeTo(null);
3772 3773

  
3773
        // 5. Show it.
3774 3774
        frame.setVisible(true);
3775 3775
    }
3776 3776

  

Also available in: Unified diff