🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

integer problem

#17675
From: Jonathan
Date: Fri, 16 Oct 1998 00:00
17 lines
847 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: <01bdf91b$b095ea50$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,f31fdefc874bb997,start
X-Google-Attributes: gidf74b3,public
From: "Jonathan" <plaskowj@logica.com>
Subject: integer problem
Date: 1998/10/16
Message-ID: <01bdf91b$b095ea50$881aea9e@ukp10008>
X-Deja-AN: 401827607
Organization: Logica UK Limited
Newsgroups: borland.public.jbuilder.java.language