Reputation: 89
My problem is described in this image:
Upvotes: 3
Views: 791
Reputation: 11308
If setBackground(Color.x)
function didn't work for you, you can try setBackgroundAt()
function as in TabComponents demo
private void initTabComponent(int i) {
pane.setTabComponentAt(i, new ButtonTabComponent(pane));
pane.setBackgroundAt(i, Color.orange);
}
Note: Make sure that the target component is opaque
Upvotes: 1