Skip to main content

How to increase the Tabs width and height

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2010-06-15


In my application iam using TabbedPane, Created a list and added to tabbedpane, based on the list item selection iam opening new Tabs.

Following properties are applied but didn't get any change,



tabbedPane.setPreferredSize(new Dimension(100,100));

How to increase the width and height of Tabs. Need help very URGENT.

Thanks in Advance,


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-11-07

TabbedPane is no longer used in 1.5 where we switched to the tabs component (there you can just update the Tab style).

For the tabbed pane you can create your own tab renderer by overriding the default look and feel. See the code in the old default look and feel to see how to create a tab renderer.