mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove native header on Ubuntu 13.04
This commit is contained in:
@@ -57,10 +57,17 @@ public class Splash extends JDialog implements StartupProgress {
|
||||
|
||||
|
||||
public Splash(String imageName, final Color textColor) {
|
||||
super((Frame)null);
|
||||
//It's a dirty hack to protect Splash Window to appear with a native window header on Ubuntu 13.04
|
||||
super(SystemInfo.isLinux ? new Frame() {
|
||||
{
|
||||
setVisible(true);
|
||||
setVisible(false);
|
||||
dispose();
|
||||
}
|
||||
} : null, false);
|
||||
|
||||
setUndecorated(true);
|
||||
setResizable(false);
|
||||
setModal(false);
|
||||
setFocusableWindowState(false);
|
||||
|
||||
Icon originalImage = IconLoader.getIcon(imageName);
|
||||
|
||||
Reference in New Issue
Block a user