Jump to content

Recommended Posts

I'm relatively new to java, and I've been working on a gui. Now when I run my code instead of opening the gui window I get this message in my console: java.lang.NumberFormatException: empty Stringat sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)at java.lang.Double.parseDouble(Unknown Source)at package.PartA.initialize(PartA.java:215)at package.PartA.<init>(PartA.java:58)at package.PartA$1.run(PartA.java:45)at java.awt.event.InvocationEvent.dispatch(Unknown Source)at java.awt.EventQueue.dispatchEvent(Unknown Source)at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)at java.awt.EventDispatchThread.pumpEvents(Unknown Source)at java.awt.EventDispatchThread.pumpEvents(Unknown Source)at java.awt.EventDispatchThread.run(Unknown Source) Also I've narrowed it down to it being something to do with these 3 lines:

dFP = Double.parseDouble(jTextFieldFP.getText());
dFAP =Double.parseDouble(jTextFAP.getText());
dFDD =Double.parseDouble(jTextFDD.getText());
Please see if it's something simple I've just overlooked! Thank you!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...