Article View: borland.public.jbuilder.java.language
Article #17680Re: Setting in integer values
From: Michael Appelmans
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
31 lines
1324 bytes
1324 bytes
int = String.valueOf(textField.getText()); -- Michael Appelmans Agility, Inc. *SpamBam - remove 123 to mail* mappelmans@123agility-inc.com Jonathan wrote in message <01bdf91a$e85914e0$881aea9e@ukp10008>... >i am very new to JBuilder, > >but can someone answer the following question. > >I have created a class which has an age attribute as an iont > >i.e. int age; > >I trying to ask the user to input their age and then setting it to >Object.age > >However, i am using a textField comp[onent, but it won't let me set the >value of age >because it is reading it as a string and not an integer, > >can anyone tell me which component allows me to read in integers and set >the values? >
Technical Details
Message-ID:
<708fnu$t605@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bdf91a$e85914e0$881aea9e@ukp10008>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,8447b8e26608d2 X-Google-Attributes: gidf74b3,public From: "Michael Appelmans" <mappel@123ibm.net> Subject: Re: Setting in integer values Date: 1998/10/16 Message-ID: <708fnu$t605@forums.borland.com> X-Deja-AN: 401942878 Content-Transfer-Encoding: 7bit References: <01bdf91a$e85914e0$881aea9e@ukp10008> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language