Java 6 introduced the JTabbedPane#setTabComponentAt API to set a custom component in a tab title, but this is not supported by Jide-OSS (it does not crash, just does nothing).
On the Jide-OSS page http://www.jidesoft.com/products/oss.htm, I read: "Bug reports: We will have dedicated resource to work on the bugs based on the priority we decide. We also accept bug fixes from the community after reviewed by our staff."
But that does not point me to where to the bug tracker. Is it still the one at java.net (https://jide-oss.dev.java.net/servlets/ProjectIssues)?
Here's a sample that does not do what it's supposed to do. If you replace new JideTabbedPane() by new JTabbedPane(), it works like a charm.
- Code: Select all
public class JideTabbedPaneTabComponentAt {
public static void main(String[] args) {
JTabbedPane tabbedPane = new JideTabbedPane();
tabbedPane.addTab("First Page", new JTextArea(10, 60));
tabbedPane.addTab("Second One", new JTextArea(10, 60));
tabbedPane.setTabComponentAt(0, new JTextField("Fu!"));
JFrame frame = new JFrame("Crash Demo");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.add(tabbedPane);
frame.pack();
frame.setVisible(true);
}
}
thanks for the wonderful library

--Stéphane