Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Wed Jul 23 02:22:46 EDT 2025

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

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

Back to the top