File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TextFeild value from DataBase not coming

 
Rekha Pande
Ranch Hand
Posts: 145
  • 0
  • Mark post as helpful
  • send pies
  • 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....
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic