java - Why is not border of custom tab overlays standard tab border in JTabbedPane? -
After text
The limit of your custom tab component does not cover the same limit on the tab.
Run this demo instead of seeing my limit is just around the text of the tab:
Public class TabBoundsDemo extends JTabbedPane {borderlineBorder = BorderFactory CreateLineBorder (Color.RED, 2); Public tabbeddom () {super, (TOP, WRAP_TAB_LAYOUT); For (int i = 0; i
So I want my red border to be in place of the standard tab limit. For now, it's just around the title.
Thank you! After the text "itemprop =" text ">
added the following code constructor simply" super (top, wrap_tabout_ULUUT); "
And we know that if it helps) go
setUI (New BasicTabbedPaneUI () {@Override zero installDefaults protected ({super.installDefaults (; lighted = Color.pink; lightHighlight = Color.green; Shadow = Color. Raid; Dark Shadow = Color. Second, Focus = Color. Yellow;}});
Comments
Post a Comment