Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable focus problem  RSS feed

 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My JFrame has many swing components and I have set Focus traversal
policy. When I press tab focus goes to next component, but when the component is table the focus gets toggled in table itself. I have to press control+tab to get out of table. But I want only tab to get out of table.
Any help...

Regards,
Anand
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this might be one way

 
Anand Loni
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael,

The code is working fine....

thanks a lot
 
prasanna kanth
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you help me on same,

I am also facing similar problem,

When the tab pressed inside the table, I want to move the focus into next row in the same column.

I have used editCellAt(row,column); but it's not working properly

can u help me on this
if u give some Piece of code it would be appreciated!

Prasanna

[ May 15, 2006: Message edited by: prasanna kanth ]
[ May 15, 2006: Message edited by: prasanna kanth ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!