I am adding tabs to the pane like so:
JTextPane field = new JTextPane();
field.setText("New test string");
field.setEditable(false);
chatTabPane.addTab("Tab 1", null, new JScrollPane(field),
"Does nothing");
for (int i = 0; i < chatTabPane.getTabCount(); i++) {
chatTabPane.setTabComponentAt(i,
new ButtonTabComponent(chatTabPane));
}
However, unless i'm mistaken there should be a blueish bar along underneath the tabs? why is it they're floating way above the pane?