Whenever i put text on JTabbedPane tab it displays it in one line, so when i have a text e.g. "XXXXXXXXX XXXXXXXXX" it displays it as it is not like XXXXXXXXX XXXXXXXXX How can I display it in two line or more? Does Tab width and height automatically adjust itself relative to the text inside it? If not how can I set the tab width and height? Thanks in advance.
The Code is the Programmer
posted 13 years ago
You could try to use html to display the tab text. If the tabs use JLabels internally this will work with 1.3 or later. For answers on what you can do to adjust height and width: take a look at the source code of JTabbedPane and its ui class (and related classes). Chantal