• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Santhosh Raj
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Santhosh Raj
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a solution for this by changing the property "nudgeSelectedLabel" of the TabbedPane.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic