I need to set UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()) to make the button size just around its name, but when I do this UIManager.put("TabbedPane.tabInsets", new Insets(2, 2, 2, 50)) has no longer effect, making the CloseableTabbedPaneLayerUI class (Closeable JTabbedPane - alignment of the close button) to display the close button over the tab name.
Asked
Active
Viewed 64 times