Skip to main content

Why is it such hard work trying to use BasicTabbedPaneUI

2 replies [Last post]
herpgps
Offline
Joined: 2003-06-11

I have been trying to make simple changes to my client I have two tabbed panes rows one at the top of my application and one at the bottom, as seen in many apps
but I seem to hit a problem with having different tab heights and insets, Is there a correct way of getting this felxibility, I tried creating two seperate BasicTabbedPaneUI delegates one for customizing my top tabbed pane setting and one for the bottom but if I try to set tabAreaInsets.left in installDefaults this is global for both delegates so using setUI on each tabbedPane is there anyother way which will allow for more flexibility so that I can have different insets and tab heights?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
leouser
Offline
Joined: 2005-12-12

have you looked at overriding getTabBounds and getTabInsets in BasicTabbedPaneUI?

leouser

herpgps
Offline
Joined: 2003-06-11

leouser thanks for pointing me in the right direction, I still had problems with overriding getTabInsets but found out that I could overrided getTabAreaInsets, this has given me indivdual control of the insets on both top and bottom tabbedpanes, I will now see if I can get control of the tab height