🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17673

Setting in integer values

#17673
From: Jonathan
Date: Fri, 16 Oct 1998 00:00
17 lines
855 bytes
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: <01bdf91a$e85914e0$881aea9e@ukp10008>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8447b8e26608d2,start
X-Google-Attributes: gidf74b3,public
From: "Jonathan" <plaskowj@logica.com>
Subject: Setting in integer values
Date: 1998/10/16
Message-ID: <01bdf91a$e85914e0$881aea9e@ukp10008>
X-Deja-AN: 401821482
Organization: Logica UK Limited
Newsgroups: borland.public.jbuilder.java.language