I have an exercise and it says that I have to use setFocus()
to select the content of a table and to gain focus. Then use the selectAll()
to select it. But I do not understand anything.
Can someone explain to me with an example how it works?
That is, I have a box X
and when I get an error I have to point it out with selectAll()
and then do setFocus()
.
The program I'm doing with Java - SWT through WindowsBuilder.