JTabbedPane选项卡的颜色

[code="java"] sinaKeyword = this.getKeywordPanel(sinaKeyword, "1");
qqKeyword = this.getKeywordPanel(qqKeyword, "4");
netEeayKeyword = this.getKeywordPanel(netEeayKeyword, "5");
twitterKeyword = this.getKeywordPanel(twitterKeyword, "3");
sohuKeyword = this.getKeywordPanel(sohuKeyword, "2");

    tabbedPane = new JTabbedPane(JTabbedPane.TOP);
    tabbedPane.setBounds(10, 10, 300, 275);

// sinaKeyword.setBackground(EnvConfigure.track_color);
tabbedPane.addTab("新浪微博", sinaKeyword);
tabbedPane.addTab("腾讯微博", qqKeyword);
tabbedPane.addTab("网易微博", netEeayKeyword);
tabbedPane.addTab("推特微博", twitterKeyword);
tabbedPane.addTab("搜狐微博", sohuKeyword);[/code]

怎么设置选项卡的颜色?[code="java"]tabbedPane.setForegroundAt(0, keyColor);[/code]没有效果

setForegroundAt是设置前景色,字体颜色
setBackgroundAt貌似无效啊
重写BasicTabbedPaneUI的这个方法
paintTabBackground(...  )

给“新浪微博”作色吗?好像真的办不到。。

试试监听的方式
tabbedPane.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
int paneIndex = tabbedPane.getSelectedIndex();
for (int i = 0; i < tabbedPane.getTabCount(); i++) {
if(paneIndex==i)
tabbedPane.setForegroundAt(i, Color.BLUE);
else
tabbedPane.setForegroundAt(i, Color.BLACK);
}
}
});