Bookmark Topic Watch Topic
  • New Topic

passing value and setting it to jlabel text

 
Rodney Perello
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
This site is really helping a lot of people! I have a simple program that I can't understand why I am getting the NullPointerException each time I try to pass a value from one form to another and setting it up as a text in a label. If I pass the value and do the pritln, I can actually see the result but if I place it in the jlabel as text, that's the time I get the error. Please Help! Thanks! Here is the code to pass the value to the other form.


 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Looks like you may have intended to post this in our Swing (not Spring ) forum. I will move it there for you. Welcome to the Ranch!
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
I think this is a duplicate of this thread. We can continue the discussions there. Locking down this thread.
 
    Bookmark Topic Watch Topic
  • New Topic