|
|
@ -52,6 +52,7 @@ import java.util.concurrent.TimeUnit; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class UserInfoLabel extends UILabel { |
|
|
|
public class UserInfoLabel extends UILabel { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final int VERSION_8 = 8; |
|
|
|
//默认查询消息时间, 30s
|
|
|
|
//默认查询消息时间, 30s
|
|
|
|
private static final long CHECK_MESSAGE_TIME = 30 * 1000L; |
|
|
|
private static final long CHECK_MESSAGE_TIME = 30 * 1000L; |
|
|
|
//默认论坛检测到更新后的弹出延迟时间
|
|
|
|
//默认论坛检测到更新后的弹出延迟时间
|
|
|
@ -99,7 +100,7 @@ public class UserInfoLabel extends UILabel { |
|
|
|
this.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
this.setHorizontalAlignment(SwingConstants.CENTER); |
|
|
|
this.setText(userName); |
|
|
|
this.setText(userName); |
|
|
|
|
|
|
|
|
|
|
|
if (StableUtils.getMajorJavaVersion() == 8) { |
|
|
|
if (StableUtils.getMajorJavaVersion() == VERSION_8) { |
|
|
|
LoginWebBridge.getHelper().setUILabel(UserInfoLabel.this); |
|
|
|
LoginWebBridge.getHelper().setUILabel(UserInfoLabel.this); |
|
|
|
PluginWebBridge.getHelper().setUILabel(UserInfoLabel.this); |
|
|
|
PluginWebBridge.getHelper().setUILabel(UserInfoLabel.this); |
|
|
|
} |
|
|
|
} |
|
|
|