change enum equals to == for client

This commit is contained in:
ingmargoudt 2017-03-01 17:03:11 +01:00
parent a32a02b688
commit d966c82019
9 changed files with 17 additions and 17 deletions

View file

@ -265,10 +265,10 @@ public class ChatPanelBasic extends javax.swing.JPanel {
textColor = MESSAGE_COLOR;
userSeparator = ": ";
}
if (color.equals(MessageColor.ORANGE)) {
if (color == MessageColor.ORANGE) {
textColor = "Orange";
}
if (color.equals(MessageColor.YELLOW)) {
if (color == MessageColor.YELLOW) {
textColor = "Yellow";
}
if (messageType == MessageType.WHISPER_FROM) {
@ -361,7 +361,7 @@ public class ChatPanelBasic extends javax.swing.JPanel {
this.txtConversation.setExtBackgroundColor(new Color(0, 0, 0, alpha)); // Alpha = 255 not transparent
this.txtConversation.setSelectionColor(Color.LIGHT_GRAY);
this.jScrollPaneTxt.setOpaque(alpha == 255);
this.jScrollPaneTxt.getViewport().setOpaque(!chatType.equals(ChatType.TABLES));
this.jScrollPaneTxt.getViewport().setOpaque(chatType != ChatType.TABLES);
}
public void clear() {