Article View: borland.public.jbuilder.java.swing
Article #1544displaying dates in JTable cells
From: George
Date: Tue, 28 Oct 2003 21:43
Date: Tue, 28 Oct 2003 21:43
14 lines
1518 bytes
1518 bytes
I am trying to display a result set from an Oracle database in a JTable. The isCellEditable() method returns true for all cells in this table. I find that the cells are editable if the column type in the database is varchar2 and number data types, If the column type is java.sql.Date, the cell is not editable. If however I create java.util.Date objects within the program, the table cells are editable for these objects. Why is this so? I am now working around this by converting the date information to String before displaying in the table. But I would prefer a more elegant method, if someone can show me. Thanks
Technical Details
Message-ID:
<3f9ee2d3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,9b0336469e18d8d9,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-10-28 13:44:20 PST From: "George" <geo_54321@yahoo.com> Newsgroups: borland.public.jbuilder.java.swing Subject: displaying dates in JTable cells Date: Tue, 28 Oct 2003 16:43:13 -0500 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 63.119.115.129 Message-ID: <3f9ee2d3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1067377363 63.119.115.129 (28 Oct 2003 13:42:43 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail