>>> First: I am trying to use the "corner" component of a tabpane to display
>>> a
>>> menubutton. However I noticed that if I open a large number of tabs, the
>>> corner component gets hidden by the tabs, is this a bug?
>> 
>> Possibly. It was originally done this way by design, but that may not have
>> been the right approach.
>> 
> 
> Could you suggest me a simple way to modify/extend TabPaneSkin so to have
> the desired behaviour?
> Or just the functions that I have to override.

You'll have to modify TerraTabPaneSkin#layout(). The corner width is currently 
determined as follows:

int buttonPanoramaWidth = Math.min(width, buttonPanoramaSize.width);
...
int cornerWidth = width - buttonPanoramaWidth;

You'll probably want to calculate the corner width first (by calling 
corner.getPreferredSize()) and then calculate the panorama width from that.


Reply via email to