mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
progress on splash
This commit is contained in:
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());
|
||||
|
||||
Reference in New Issue
Block a user