(RadioButton b)
| 633 | } |
| 634 | |
| 635 | private Component createTabImpl(RadioButton b) { |
| 636 | radioGroup.add(b); |
| 637 | b.setToggle(true); |
| 638 | b.setTextPosition(BOTTOM); |
| 639 | if (radioGroup.getButtonCount() == 1) { |
| 640 | b.setSelected(true); |
| 641 | } |
| 642 | if (textPosition != -1) { |
| 643 | b.setTextPosition(textPosition); |
| 644 | } |
| 645 | |
| 646 | if (b.getIcon() == null && !getUIManager().isThemeConstant("TabEnableAutoImageBool", true)) { |
| 647 | Image d = getUIManager().getThemeImageConstant("TabUnselectedImage"); |
| 648 | if (d != null) { |
| 649 | b.setIcon(d); |
| 650 | d = getUIManager().getThemeImageConstant("TabSelectedImage"); |
| 651 | if (d != null) { |
| 652 | b.setRolloverIcon(d); |
| 653 | b.setPressedIcon(d); |
| 654 | } |
| 655 | } |
| 656 | } |
| 657 | return b; |
| 658 | } |
| 659 | |
| 660 | /// Creates a tab component by default this is a RadioButton but subclasses can use this to return anything |
| 661 | /// |
no test coverage detected