Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Text Problem
Text Problem [message #461991] Sat, 20 January 2007 12:58 Go to next message
Eclipse UserFriend
Originally posted by: badreddine49.yahoo.fr

I have an application SWT which manages a Mysql database.How to charge the data stored in the database in the Text widget of my application in order to being modify.
I used an instruction SELECT:
<i>String selectPartner="SELECT * FROM partnerinformation WHERE ID_Partner=5";
ResultSet resultatsPartnerInformation=statement.executeQuery(selectPar tner);
adressPartner.setText(resultatsPartnerInformation.getString( "adressPartner"));</i>But my text widget is always empty
I think that the problem that I must refresh my graphic interface.But I don't have the code or instruction.!!??

Please help me. Thanks

Best regards.

badr
Re: Text Problem [message #461992 is a reply to message #461991] Sat, 20 January 2007 13:22 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

no you don't need to refresh the GUI this is done automatically for you.
But your use case seems to be exactly what JFace-Databinding is designed
for
http://wiki.eclipse.org/index.php/Special:Search?search=data binding&go=Go

Tom

badr schrieb:
> I have an application SWT which manages a Mysql database.How to charge the data stored in the database in the Text widget of my application in order to being modify.
> I used an instruction SELECT:
> <i>String selectPartner="SELECT * FROM partnerinformation WHERE ID_Partner=5";
> ResultSet resultatsPartnerInformation=statement.executeQuery(selectPar tner);
> adressPartner.setText(resultatsPartnerInformation.getString( "adressPartner"));</i>But my text widget is always empty
> I think that the problem that I must refresh my graphic interface.But I don't have the code or instruction.!!??
>
> Please help me. Thanks
>
> Best regards.
>
> badr
Previous Topic:connection to Mysql Database
Next Topic:RCP as applet
Goto Forum:
  


Current Time: Fri Apr 19 09:04:02 GMT 2024

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

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

Back to the top