MCPcopy Create free account
hub / github.com/GateNLP/gate-core / insertTab

Method insertTab

src/main/java/gate/swing/XJTabbedPane.java:56–65  ·  view source on GitHub ↗
(String title, Icon icon, Component component, String tip, int index)

Source from the content-addressed store, hash-verified

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

Callers 1

initGuiComponentsMethod · 0.80

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected