Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus in SWT  RSS feed

 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a composite, which itself can hae multilpe compiosites and control.
When I keep on pressing TAB, the focus would traverse through all the components and finally wrap to the first component.
Now I want to know, given a composite, the first and the last component in the focus cycle.
Its easy to do in Swing, but I am not sure how to do it in SWT.

Thanks already.
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No ideas

I thought for SWT guys this must be simple.
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[A man running throught the streets, shouting] Help Help!!
 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Patience Is A Virtue. Not everybody is checking these forums every single hour of the day. There is sure to be someone coming along with an answer, so just wait a bit more. You shouldn't bump threads before at least one day has past.
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh!. Thanks for that Budha stuff, I actually forgot that, guess I need to go back to school
That was good for a start anyway, atleast people are reading

 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No answers
Just some hint to right direction would also suffice
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok...What I want is something as simple as this but in SWT:
getFocusTraversalPolicy().getFirstComponent(comp); and
getFocusTraversalPolicy().getLastComponent(comp);

Is there equivalent stuff in SWT.
[Doctors rushing throught the doors:"This guys is alomost gone mad, he just keeps on shouting Help Help..."]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!