0

In a jtabbedpane if i have multiple tabs opened and orientation is with respect en_GB locale(Left to Right) then it provides a navigating buttons. But if i use arabic locale(Right to Left) then it wont provide the navigation buttons to navigate the tabs. Please need halp on this.

GuruKulki
  • 25,776
  • 50
  • 140
  • 201

1 Answers1

1

You can to set/override ComponentOrientation for JTabbedPane and/or with Locale too

Community
  • 1
  • 1
mKorbel
  • 109,525
  • 20
  • 134
  • 319
  • I am able to set the orientation, but not able to navigate between the tabs if its from Right to Left. – GuruKulki Jun 13 '12 at 11:08
  • 1
    not sure what and how, please edit your question with an [SSCCE](http://sscce.org/), sure you can use my linked code, but I need to see your idea(s) – mKorbel Jun 13 '12 at 12:06
  • 1
    See also this [example](http://stackoverflow.com/a/6475412/230513) using `applyComponentOrientation()`. – trashgod Jun 13 '12 at 16:41
  • @Eng.Fouad could you please to comment this one, meaning to comment `not able to navigate between the tabs if its from Right to Left` ??? – mKorbel Jun 13 '12 at 21:07
  • If there are many tabs opened which cannot fit in the tabbedpane then it provides a scroll buttons to switch between the tabs of the orientation is from Left to Right, which is not available if the orientation is from Right to Left. – GuruKulki Jun 14 '12 at 16:16
  • this is another reason why overlay [expected possition of navigations buttons with own navigations bar](http://stackoverflow.com/a/9734016/714968), with two JButtons and finally own Icons (not possible directly because navigations bar isn't accesible from implemented API) – mKorbel Jun 14 '12 at 18:11