From 721c87757b28ebd3a12cab67e613944ef4d49d02 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Wed, 25 Jul 2012 09:54:40 +0400 Subject: [PATCH] [UI] trasnparent players list in gamefind panel --- .../main/java/mage/client/chat/ChatPanel.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/chat/ChatPanel.java b/Mage.Client/src/main/java/mage/client/chat/ChatPanel.java index 4f88380b8f..1930b30c60 100644 --- a/Mage.Client/src/main/java/mage/client/chat/ChatPanel.java +++ b/Mage.Client/src/main/java/mage/client/chat/ChatPanel.java @@ -34,10 +34,6 @@ package mage.client.chat; -import java.awt.*; -import java.awt.event.KeyEvent; -import java.util.*; -import java.util.List; import mage.client.MageFrame; import mage.client.components.ColorPane; import mage.remote.Session; @@ -46,6 +42,10 @@ import mage.view.ChatMessage.MessageColor; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.table.AbstractTableModel; +import java.awt.*; +import java.awt.event.KeyEvent; +import java.util.*; +import java.util.List; /** * @@ -125,6 +125,17 @@ public class ChatPanel extends javax.swing.JPanel { public ChatPanel(boolean addPlayersTab) { tableModel = new TableModel(); initComponents(); + jTable1.setBackground(new Color(0, 0, 0, 0)); + jTable1.setForeground(Color.white); + setBackground(new Color(0, 0, 0, 100)); + if (jScrollPane1 != null) { + jScrollPane1.setBackground(new Color(0, 0, 0, 100)); + jScrollPane1.getViewport().setBackground(new Color(0, 0, 0, 100)); + } + if (jScrollPane2 != null) { + jScrollPane2.setBackground(new Color(0, 0, 0, 100)); + jScrollPane2.getViewport().setBackground(new Color(0, 0, 0, 100)); + } if (!addPlayersTab) simplifyComponents(); }