Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTextField as a double?

843805Dec 5 2006 — edited Dec 5 2006
Hello..

I have a JTextField that I want to eat doubles - so I can send it to a parameter of a method that takes doubles...

How do I do that? What I have below doenst work as eating doubles, only String.. :S

JTextField startbelob; // a field

startbelob = new JTextField("Indtast startbel�bet");
centerJPanel.add(startbelob, BorderLayout.CENTER);

Best regards,
pse.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2007
Added on Dec 5 2006
7 comments
773 views