Skip to main content

How to increase the Tabs width and height

1 reply [Last post]
sriramjava86
Offline
Joined: 2010-06-15
Points: 0

Hi,

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.setPreferredH(100);

tabbedPane.setPreferredW(100);

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

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

Thanks in Advance,

Sriramjava86.

Reply viewing options

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

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.