From ea50351e0c730494bc9f48c9a54fdfb3e6838ecf Mon Sep 17 00:00:00 2001 From: MoMeak Date: Mon, 4 Dec 2017 18:02:49 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-5887=20=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95=EF=BC=8C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=87=8D=E6=96=B0=E7=99=BB=E5=BD=95=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E6=88=B7=E5=90=8D=E7=9A=84=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_base/src/com/fr/design/extra/LoginWebBridge.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/designer_base/src/com/fr/design/extra/LoginWebBridge.java b/designer_base/src/com/fr/design/extra/LoginWebBridge.java index 330b9fc033..3fb83f5faf 100644 --- a/designer_base/src/com/fr/design/extra/LoginWebBridge.java +++ b/designer_base/src/com/fr/design/extra/LoginWebBridge.java @@ -20,7 +20,7 @@ import netscape.javascript.JSObject; import javax.swing.JDialog; import javax.swing.SwingUtilities; -import java.awt.Desktop; +import java.awt.*; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URLEncoder; @@ -57,6 +57,7 @@ public class LoginWebBridge { private static final int TIME_OUT = 10000; private static final String LOGIN_SUCCESS = "ok"; private static final String LOGIN_FAILED = "failed"; + private static final Color LOGIN_BACKGROUND = new Color(184, 220, 242); private static LoginWebBridge helper; private UIDialog uiDialog; @@ -250,6 +251,7 @@ public class LoginWebBridge { private void loginSuccess(String username) { closeWindow(); uiLabel.setText(username); + uiLabel.setBackground(LOGIN_BACKGROUND); } /**