Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Dotted line missing on focused Radio button and List
Dotted line missing on focused Radio button and List [message #533310] Thu, 13 May 2010 04:20 Go to next message
Eclipse UserFriend
Hi all,
I have a wizard with some pages, every time I press next to the following page, I would like to focus on the first element when next page is shown.
I tried
Display.getDefault().asyncExec(new Runnable() {
public void run() {
control.setFocus();
}
});

but the dotted line is not showing around the control. Any suggestions?

Thanks in advance.

[Updated on: Thu, 13 May 2010 04:21] by Moderator

Re: Dotted line missing on focused Radio button and List [message #533509 is a reply to message #533310] Fri, 14 May 2010 06:31 Go to previous message
Eclipse UserFriend
Whenever you traverse to the next page, try to get the base parent for
all controls of the page, which would be instance of 'Composite' mostly.
Then, composite.setFocus() would determine the first child and takes
care of assigning the focus to it.
Previous Topic:Automatically resize multi-line Text widget to match # of rows
Next Topic:Launch an external application in a shell
Goto Forum:
  


Current Time: Sat Aug 30 19:49:49 EDT 2025

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

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

Back to the top