Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with SWT Text
Problem with SWT Text [message #673621] Tue, 24 May 2011 05:31 Go to next message
Eclipse UserFriend
Hello,
I have a problem "Invalid thread Acesss" when i want to recuperate the content of a SWT Text by this line {"String chaine =instanceText.getText();"}
Indeed , I defined the The text in the method "create control"

{instanceText = new Text(composite, SWT.BORDER);
instanceText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));}

but when I use it in another method "initTypePage" in the same class,I receive this problem "Invalid thread Acesss".

Thank you very much for your help.
Re: Problem with SWT Text [message #673998 is a reply to message #673621] Wed, 25 May 2011 09:28 Go to previous message
Eclipse UserFriend
Hi,

Please see the faq entry regarding this exception --> http://www.eclipse.org/swt/faq.php#uithread

Previous Topic:Creating an email-recipient like widget
Next Topic:Add an action to a CLabel
Goto Forum:
  


Current Time: Sat Jul 05 06:14:03 EDT 2025

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

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

Back to the top