Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with SWT Text
Problem with SWT Text [message #673621] Tue, 24 May 2011 09:31 Go to next message
Mariem  is currently offline Mariem Friend
Messages: 1
Registered: May 2011
Junior Member
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 13:28 Go to previous message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

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



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


Current Time: Wed Apr 24 15:24:39 GMT 2024

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

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

Back to the top