• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TextFeild value from DataBase not coming

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm having this problem, that when i do a System.out.println for variable pass in the while loop, the value is coming right but when i try to use that value as setText for my textField in the createSimpleDialogBox() the variable pass value is empty. Why is it so. and how can i rectify it.???
My code is below..please help.



Thanxs....
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rekha,
I found out some misplace of the method calls in your code...

I believe that different instances calling the same method will cause you a problem. So could you check those and give us some feedbacks on that? I hope this helps...
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

well i think there was a problem in the way how i was declaring the variable .. now that i have changed it to static every thing seems to be working fine...


Thanxs all... i'm sure i'll be neading all ranchers help shortly beacuse now i have to call this class file from a web page..... let me try..if i get stuck then i know where to come
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rekha,
Well, as for static variables, you will be able to use it throughout all the instances... It will be fine, as long as you want to use those variables as such manner... But if you do want to use them in different instances, then you cannot avoid using instance variables...
 
reply
    Bookmark Topic Watch Topic
  • New Topic