• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue with JTabbedPane

 
AshokKumar reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have JTabbedPane control(Scrollable) which has multiple tabs open.In LeftToRight Orientation, it is showing arrow keys(to the right side of the tabs) when I open many tabs which goes beyond screen.So I can easily navigate.Upto now this is fine. But If my orientation is RightToLeft then those arrow keys(expected to be leftside of the tabs)not showing up.I have even set the component orientation correctly.Please help..

Thanks
Ashok
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Works for me.
Post your sscce
tabPane.jpg
[Thumbnail for tabPane.jpg]
 
AshokKumar reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi See my code..



Thanks
Ashok
 
AshokKumar reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I have timezone for Arabic,SA that time I am facing the problem..See my code in previous post...Can anyone please help me here?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried your code. Works for me.
screenshot.jpg
[Thumbnail for screenshot.jpg]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FWIW, the posted code does not work for me either - the 2 scroll buttons only appear if the componentOrientation is L-->R

perhaps an OS or version problem? mine - java 1.6, vista
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:
perhaps an OS or version problem? mine - java 1.6, vista


Hmmm.
Might be an OS issue. Im trying this on Mac. My Java version is 1.6.0_17

PS.The screenshot did not upload the last time. I have edited my previous post to incude the screenshot.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mine's 1.6.0_18, and I just tried the image, invalid again
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Invalid? You mean you cannot open the attachment?
 
Rob Spoor
Sheriff
Posts: 20817
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither can I.

Anyway, on my Windows XP with Java 6u18 I also don't get the buttons. If I comment out the two "applyComponentOrientation" calls then the buttons appear on the right side. Apparently you've found a bug in the look&feel. I suggest you check the bug database, and add a new bug if it isn't in there yet.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Figured out what I was doing wrong.
PS. Also tried on Ubuntu 9.10. Doesnt work for R-L.
screenshot.jpg
[Thumbnail for screenshot.jpg]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!