aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Remove the text shift effect when a tab is selected in TabbedPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Remove the text shift effect when a tab is selected in TabbedPane" Watch "Remove the text shift effect when a tab is selected in TabbedPane" New topic
Author

Remove the text shift effect when a tab is selected in TabbedPane

Santhosh Raj
Greenhorn

Joined: Mar 08, 2012
Posts: 25
Hi,
I want to remove the text shift effect when a tab is selected or deselected.
The tab title should remain in the same position irrespective of whether the tab is selected or not.
Please help me in this.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

Considering also your last question, for which a kludgy workaround could be found, you really need to buckle down and learn to write your own UI delegate.

But first, I would like to know -- why?


luck, db
There are no new questions, but there may be new answers.
Santhosh Raj
Greenhorn

Joined: Mar 08, 2012
Posts: 25
I have a requirement where in only the tab should change but the tab title should never change its position so as to give the pressed effect.
In case of button, i found a property called textShiftOffset which can be made to 0 to achieve what I am asking for.
But i have no idea in case of TabbedPane.
Santhosh Raj
Greenhorn

Joined: Mar 08, 2012
Posts: 25
I got a solution for this by changing the property "nudgeSelectedLabel" of the TabbedPane.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remove the text shift effect when a tab is selected in TabbedPane