<!-- 表格 -->
 <style id="table"> 
 <object class="javax.swing.plaf.ColorUIResource" id="color">
    <int>255</int>
    <int>0</int>
    <int>0</int>
  </object>
  <defaultsProperty key="Table.focusCellForeground" type="idref" value="color"/>
 <object class="javax.swing.plaf.ColorUIResource" id="gridColor">
    <int>255</int>
    <int>0</int>
    <int>0</int>
  </object> 
  <defaultsProperty key="Table.gridColor" type="idref" value="gridColor"/> 
   <object id="background" class="org.refworld.narcotics.app.frame.TbackgroundPainter"/> 
   <defaultsProperty key="Table.background" type="idref" value="background"/>
   <painter method="paintTableBackground" idref="background"/>
   <property key="Table.rendererUseTableColors" type="boolean" value="false"/>
  <property key="Table.rendererUseUIBorder" type="boolean" value="false"/>
  
  </style>
  <bind style="table" type="region" key="Table"/>
TbackgroundPainter.java文件内容:
package org.refworld.narcotics.app.frame;import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.plaf.synth.SynthContext;
import javax.swing.plaf.synth.SynthPainter;/**
 *
 * @author Blues
 */
public class TbackgroundPainer extends SynthPainter{
    
    /** Creates a new instance of TbackgroundPainer */
    public TbackgroundPainer() {
    }
    public void paintTableBackground(SynthContext context,Graphics g,int x,int y,int w,int h)
    {
        Graphics2D g2 = (Graphics2D)g;
        g2.setColor(Color.BLUE);
        g2.fillRect(x, y, w, h);
    }
}
这是我写的代码但是执行后表格网格线和背景色都没变
请问到底哪里出错