progress on splash

This commit is contained in:
Dmitry Avdeev
2011-07-20 11:45:32 +04:00
parent a5cc4f787a
commit dec7c84376
2 changed files with 3 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 144 KiB

@@ -27,6 +27,7 @@ import java.util.List;
public class Splash extends JDialog implements Consumer<String> {
private final Icon myImage;
private final JLabel myLabel;
private final Color myTextColor;
public Splash(String imageName, final Color textColor) {
setUndecorated(true);
@@ -35,7 +36,8 @@ public class Splash extends JDialog implements Consumer<String> {
setFocusableWindowState(false);
Icon originalImage = IconLoader.getIcon(imageName);
myImage = new MyIcon(originalImage, textColor);
myTextColor = textColor;
myImage = new MyIcon(originalImage, myTextColor);
myLabel = new JLabel(myImage);
Container contentPane = getContentPane();
contentPane.setLayout(new BorderLayout());