🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting JTable Values

#18779
From: Rich Wilkman
Date: Mon, 27 Apr 1998 00:00
46 lines
2285 bytes
Rob:

I'm really buried, so I'll work from your description of the problem. 
If it's sometimes returning String instead of Integer (due to funky
model math and gyrations or whatever), the best I can come up with is
checking the return type with instanceOf and making the appropriate
conversion from String to Integer when needed.

Make sense?

-Rich

Rob Williams wrote:
> 
> Rich:
> 
> I found out what is going on.  I have modified TableExample3 from the JFC
> samples directory and after editing a column with a number in it, the model
> is somehow changing that column class from Integer to String.  It does it in
> the example too!!  If you run the Example (the one with the checkbox for
> vegetarian and favorite number), after you change the favorite number, the
> alignment of the column changes to left and if you call the getColumnClass()
> you will see that it spits back String!!!  That's my problem.  How do I
> resolve it.
> 
> --
> Rob Williams
> RobCo Incorporated
> 
> PS: Can't wait for JB2!!!!!!!!!  Is it really a week or two away?

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Senior Quality Assurance Engineer
Borland JBuilder Team

If you see something that looks like an opinion up there,
it's mine and mine alone.

Mail sent to me from the newsgroups won't bounce but will
be ignored.  If I have time, I'll respond, but you  have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <3544B783.1729ECB1@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6hsjp9$28n6@forums.borland.com> <35421191.E982901C@corp.borland.com> <6ht4o8$2i29@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4bc9,536681f5d4a5ef28
X-Google-Attributes: gidf4bc9,public
X-Google-Thread: f74b3,536681f5d4a5ef28
X-Google-Attributes: gidf74b3,public
From: Rich Wilkman <rwilkman@corp.borland.com>
Subject: Re: Getting JTable Values
Date: 1998/04/27
Message-ID: <3544B783.1729ECB1@corp.borland.com>
X-Deja-AN: 348134014
Content-Transfer-Encoding: 7bit
References: <6hsjp9$28n6@forums.borland.com> <35421191.E982901C@corp.borland.com> <6ht4o8$2i29@forums.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.thirdpartytools