Revision 45098 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/ui/splash/MultiSplashWindow.java

View differences:

MultiSplashWindow.java
46 46
import javax.swing.JWindow;
47 47
import javax.swing.SwingUtilities;
48 48
import javax.swing.Timer;
49
import org.gvsig.andami.Launcher;
49 50

  
50 51
import org.gvsig.andami.PluginServices;
51 52
import org.gvsig.andami.messages.Messages;
......
81 82
    private int[] fontSizes=null;
82 83
    private Color fontcolor=new Color(80,170,240);
83 84
    private Color[] fontColors=null;
85
    private final boolean showsplash;
84 86

  
85 87
    public MultiSplashWindow(Frame f, Theme theme, int progressBarStepCount) {
86 88
        super(f);
89
        this.showsplash = (boolean) Launcher.getArguments().get("splash",true);
87 90
        this.theme = theme;
88 91
        this.timers = theme.getTimers();
89 92
        lblStatus = new JLabel(Messages.getString("SplashWindow.Iniciando"));
......
102 105
        setLocation((screenSize.width / 2) - (splashDimension.width / 2),
103 106
            (screenSize.height / 2) - (splashDimension.height / 2));
104 107
        index = 0;
105
        setVisible(true);
108
        setVisible(this.showsplash);
106 109
        this.addMouseListener(this);
107 110
    }
108 111

  

Also available in: Unified diff