(int textPosition)
| 465 | /// |
| 466 | /// - #TOP |
| 467 | public void setTabTextPosition(int textPosition) { |
| 468 | if (textPosition != LEFT && textPosition != RIGHT && textPosition != BOTTOM && textPosition != TOP) { |
| 469 | throw new IllegalArgumentException("Text position can't be set to " + textPosition); |
| 470 | } |
| 471 | this.textPosition = textPosition; |
| 472 | for (int iter = 0; iter < getTabCount(); iter++) { |
| 473 | setTextPosition(tabsContainer.getComponentAt(iter), textPosition); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | /// Adds a `component` |
| 478 | /// represented by a `title` and/or `icon`, |
no test coverage detected