Changing the focus button in a wizard page or launch tab [message #16664] |
Thu, 25 June 2009 14:26  |
Eclipse User |
|
|
|
I have a set of controls that I want to use in both a wizard and a launch
configuration tab. Here is my basic problem: I have a simple text box that
the user can enter data into. When they press "enter" I want that data to
go into a table. However, in launch tabs and windows, the "Run" button, or
the "Next" button always has focus, so pressing "Enter" will either start
the launch or go to the next page--definitely not what I want. Is there a
way that I can change the focus from the default button to my own "add"
button when the user selects the text box? I tried using a focus listener
on the text box, but that will just force focus away from the text box so
the user can't enter text. Any ideas? This should be a simple thing to do,
but I can't figure it out.
Del
|
|
|
|
Powered by
FUDForum. Page generated in 0.02451 seconds