Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Focus first Text in Dialog
Focus first Text in Dialog [message #1037985] Wed, 10 April 2013 08:54 Go to next message
Tiburon T is currently offline Tiburon TFriend
Messages: 53
Registered: October 2011
Member
Hello!

This is probably a very simple question, but I can not figure out how to do it..

When I open a new dialog with Text controls, I would like to give the (keyboard) focus to one of the contained Texts, so that the user can start typing right away.
I tried setFocus and forceFocus in multiple places, but they return false and the focus is not set.

Can anybody help me with this please?

Thanks,
Tiburon
Re: Focus first Text in Dialog [message #1038805 is a reply to message #1037985] Thu, 11 April 2013 10:58 Go to previous message
Tiburon T is currently offline Tiburon TFriend
Messages: 53
Registered: October 2011
Member
Sorry found the problem in our own code, setFocus works fine in createDialogArea of JFace Dialogs.

Tiburon
Previous Topic:registering handlers
Next Topic:How to restart session?
Goto Forum:
  


Current Time: Sat Dec 20 04:26:59 GMT 2014

Powered by FUDForum. Page generated in 0.01558 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software