(String title, Icon icon, Component component, String tip, int index)
| 54 | } |
| 55 | |
| 56 | @Override |
| 57 | public void insertTab(String title, Icon icon, Component component, String tip, int index) { |
| 58 | if (title.length() > 15) { // shorten the tab title with ellispsis |
| 59 | tip = "<html>" + title + "<br>" + tip + "</html>"; |
| 60 | title = title.substring(0, 15) + "\u2026"; |
| 61 | super.insertTab(title, icon, component, tip, index); |
| 62 | } else { |
| 63 | super.insertTab(title, icon, component, tip, index); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | }// class XJTabbedPane extends JTabbedPane |
no test coverage detected