From 2d9bb546cc1b3381c6fd73f28b3856ef9cad9c05 Mon Sep 17 00:00:00 2001 From: pengda Date: Mon, 2 Dec 2019 17:31:45 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-19946=20linux=E8=AE=BE=E8=AE=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/fr/start/common/SplashWindow.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/designer-realize/src/main/java/com/fr/start/common/SplashWindow.java b/designer-realize/src/main/java/com/fr/start/common/SplashWindow.java index 951fba326..aa375c1dc 100644 --- a/designer-realize/src/main/java/com/fr/start/common/SplashWindow.java +++ b/designer-realize/src/main/java/com/fr/start/common/SplashWindow.java @@ -1,14 +1,12 @@ package com.fr.start.common; -import com.fr.base.BaseUtils; import com.fr.design.fun.OemProcessor; import com.fr.design.utils.gui.GUICoreUtils; +import com.fr.general.IOUtils; import com.fr.log.FineLoggerFactory; import com.fr.stable.image4j.codec.ico.ICODecoder; import com.fr.stable.os.OperatingSystem; import com.fr.start.OemHandler; -import com.sun.awt.AWTUtilities; - import javax.swing.*; import java.awt.*; import java.awt.image.*; @@ -41,8 +39,6 @@ public class SplashWindow extends JFrame { this.setAlwaysOnTop(false); this.setUndecorated(true); - AWTUtilities.setWindowOpaque(this, false); - //使窗体背景透明 if (OperatingSystem.isWindows()) { this.setBackground(new Color(0, 0, 0, 0)); @@ -73,7 +69,7 @@ public class SplashWindow extends JFrame { this.setIconImages(image); } catch (IOException e) { FineLoggerFactory.getLogger().error(e.getMessage(), e); - this.setIconImage(BaseUtils.readImage("/com/fr/base/images/oem/logo.png")); + this.setIconImage(IOUtils.readImage("/com/fr/base/images/oem/logo.png")); } }