Browse Source

Merge pull request #1503 in BA/design from ~MOMEAK/design9.0:feature/9.0 to feature/9.0

* commit 'ea50351e0c730494bc9f48c9a54fdfb3e6838ecf':
  REPORT-5887 设计器用户登录,切换用户重新登录后,用户名的背景不显示了
master
superman 7 years ago
parent
commit
8ac321f7c1
  1. 4
      designer_base/src/com/fr/design/extra/LoginWebBridge.java

4
designer_base/src/com/fr/design/extra/LoginWebBridge.java

@ -20,7 +20,7 @@ import netscape.javascript.JSObject;
import javax.swing.JDialog; import javax.swing.JDialog;
import javax.swing.SwingUtilities; import javax.swing.SwingUtilities;
import java.awt.Desktop; import java.awt.*;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.net.URI; import java.net.URI;
import java.net.URLEncoder; import java.net.URLEncoder;
@ -57,6 +57,7 @@ public class LoginWebBridge {
private static final int TIME_OUT = 10000; private static final int TIME_OUT = 10000;
private static final String LOGIN_SUCCESS = "ok"; private static final String LOGIN_SUCCESS = "ok";
private static final String LOGIN_FAILED = "failed"; private static final String LOGIN_FAILED = "failed";
private static final Color LOGIN_BACKGROUND = new Color(184, 220, 242);
private static LoginWebBridge helper; private static LoginWebBridge helper;
private UIDialog uiDialog; private UIDialog uiDialog;
@ -250,6 +251,7 @@ public class LoginWebBridge {
private void loginSuccess(String username) { private void loginSuccess(String username) {
closeWindow(); closeWindow();
uiLabel.setText(username); uiLabel.setText(username);
uiLabel.setBackground(LOGIN_BACKGROUND);
} }
/** /**

Loading…
Cancel
Save