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 04:54 Go to next message
Tiburon T is currently offline Tiburon T
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 06:58 Go to previous message
Tiburon T is currently offline Tiburon T
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: Mon Jul 28 02:17:20 EDT 2014

Powered by FUDForum. Page generated in 0.02054 seconds