How can I adjust the height of a Tab's Title
Dear friends,I setup several Tab in a panel, but I think the title height of each Tabbed panel is too high, is there any parameter I can set to change their height?Thankssunny
# 2
Sorry, I did nor describe clearly,It is the hight of Tab's Title,which is on the upper left corner of each Tab I hope to change, It is not the height of Tab,Regardssunny
# 4
UIManager.put("TabbedPane.tabInsets", new Insets(40, 40, 40, 40) );
# 5
My code as follows,
It is ICON, not text, but Title is too high, I hope to reduce to icon's height:
final JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.setTabPlacement(SwingConstants.LEFT);
panel.add(tabbedPane, BorderLayout.CENTER);
tabbedPane.addTab("", SwingResourceManager.getIcon(TestTabPaneSub_1.class, "images/boy.JPG"),
Thanks
sunny
# 7
Dear friend:I want the container to fit the icon, because I can see there is a margin space between my icon and container, I also try replacing the title " " to null, but no effect.any other advice?Thanks so much.sunny