Component testcell= (Component)m_table.getCellRenderer(2,2);
System.out.println("before  " + testcell.getBackground());
                  if(testcell.getBackground().equals(Color.black)){
                      testcell.setBackground(Color.red);
                  } else {
                      testcell.setBackground(Color.black);
                  }
                  m_table.repaint();
System.out.println("after  " + testcell.getBackground());
              }
Background 的值肯定是改变了,可使画面上没有效果,这是为什么呢?
我这么做,是让cell的又闪烁的效果,这段代码,在一个Thread里面循环做的,可是没有用,请赐教,谢谢