This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Faiz Memon: How do I create a JTabbedPane with editable tab labels
Since 1.6 there is a method JTabbedPane#setTabComponentAt(int index,Component component) You can use this to provide your custom component which will enable the user to edit the tab label.
If you cannot use 1.6, you might consider using a trigger (JPopupMenu on right clicking the tab perhaps), ask the user for the new text (Using the JOptionPane#showInputDialog() perhaps) and set the new title by using the JTabbedPane#setTitleAt(int index,String title)