Revision 8252
trunk/frameworks/_fwAndami/src/com/iver/andami/ui/splash/MultiSplashWindow.java | ||
---|---|---|
30 | 30 |
private Dimension splashDimension; |
31 | 31 |
private int index = 0; |
32 | 32 |
private int current; |
33 |
private int lastIndex=-1; |
|
33 | 34 |
|
34 | 35 |
public MultiSplashWindow(Frame f) { |
35 | 36 |
super(f); |
36 | 37 |
|
37 | 38 |
if (splashDimension == null) { |
38 |
splashDimension = new Dimension(400, 400);
|
|
39 |
splashDimension = new Dimension(400, 420);
|
|
39 | 40 |
} |
40 | 41 |
lblStatus = new JLabel(Messages.getString("SplashWindow.Iniciando")); |
41 | 42 |
lblStatus.setBorder(BorderFactory.createEtchedBorder()); |
... | ... | |
92 | 93 |
} |
93 | 94 |
|
94 | 95 |
public void paint(Graphics g) { |
96 |
if (lastIndex==current) |
|
97 |
return; |
|
95 | 98 |
super.paint(g); |
99 |
|
|
96 | 100 |
if (img == null || img[current] == null) |
97 | 101 |
return; |
98 |
g.drawImage(img[current].getImage(), 0, 20, null); |
|
102 |
|
|
103 |
g.drawImage(img[current].getImage(), 0, 20, this); |
|
104 |
lastIndex=current; |
|
99 | 105 |
} |
100 | 106 |
|
101 | 107 |
public void tick() { |
Also available in: Unified diff