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  

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

Popular posts from this blog

c# - Highlight all words containing a letter in a richtextbox -

Admob interstitials not clickable on Nexus 5 (Android 4.4.2) -

java - MigLayout - selective component fill -