Skip to main content


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: 61
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: 61
Registered: October 2011
Member
Sorry found the problem in our own code, setFocus works fine in createDialogArea of JFace Dialogs.

Tiburon
Previous Topic:CSS and font size
Next Topic:Convert POJO -> JSON in rap 2.0
Goto Forum:
  


Current Time: Fri Oct 04 22:19:54 GMT 2024

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

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

Back to the top