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

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -