• Post Reply Bookmark Topic Watch Topic
  • New Topic

number format exception: empty string

 
James Nobles
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the exception message I am getting when I run the program and I select a job from the check box and enter an hour amount. Thanks for looking.






 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too much code. You need to post a SSCCE.

Your question is about entering an amount. So all you need is a frame with a text field and a button that attempts to validate the value entered in the text field.
 
James Nobles
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry can you explain what you mean in greater detail. I am a complete novice. I will attempt to condense my code thanks.
 
Paul Clapham
Sheriff
Posts: 21882
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start by looking at the stack trace which appears when that exception is thrown. It will tell you where the exception occurred: class, method, right down to the line of code. You could produce an SSCCE, as Rob suggests -- just make sure you include the code in and around the line where the exception occurred.

Or if you haven't yet looked at the stack trace, perhaps when you find the culprit line of code you might have an idea what to do about it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!