Article View: borland.public.jbuilder.java.swing
Article #8182Re: Using JTable in JB3.5
From: Zachary Cooper
Date: Wed, 11 Oct 2000 00:00
Date: Wed, 11 Oct 2000 00:00
36 lines
2238 bytes
2238 bytes
I'm also a Java newbie, and have spent the past couple days looking at JTable's specifically. (See message posted just before yours.) Two things I have discovered: 1) JBuilder Foundation doesn't really support TableModel in the GUI builder, but handles the code well once you put it in yourself. 2) A JTable generates a DefaultTableModel by default which you can control with getModel() (and setModel()). If you've populated the table, then the DefaultTableModel methods like getColumnCount() will return meaningful info. If you figure the JTable/TableModel relationship out, please see my post and let me know if you know how solve my prob. Thanks. "Bradford C. Miller" <millerb235@spicedhamawayaol.com> wrote in message news:39E4D0BB.CC628234@spicedhamawayaol.com... > I'm a Java newbie, but am an experienced Delphi developer. The > translation to the JBuilder IDE, is not going well for me at all. > Example: I'm trying to put a JTable onto a frame. Seems simple. > > NOT. > > I looked at some of the sample code for JTable, and copy and pasted the > code into JB and eventually got the app to run. It showed my table, and > all was good. However, I can't see how to do this actually using the > IDE. I dislike the fact that dropping a JTable doesn't do anything, and > there are no useful properties like RowCount, ColCount, etc. I see that > I need to have a TableModel defined, but am unsure as to where I would > actually declare this. ARrrrrrrgh. > > Java just seems much more difficult than Delphi....:( > > And that's ignoring the concept of "Layout managers" which I actually > understand and can deal with.
Technical Details
Message-ID:
<39e4e30b$1_2@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39E4D0BB.CC628234@spicedhamawayaol.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4c07b84da84bcfeb X-Google-Attributes: gid111d45,public From: "Zachary Cooper" <ztc@bigfoot.com> Subject: Re: Using JTable in JB3.5 Date: 2000/10/11 Message-ID: <39e4e30b$1_2@dnews> X-Deja-AN: 680333505 References: <39E4D0BB.CC628234@spicedhamawayaol.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Trace: 11 Oct 2000 15:00:43 -0800, 151.202.98.238 X-MSMail-Priority: Normal Reply-To: "Zachary Cooper" <ztc@bigfoot.com> Newsgroups: borland.public.jbuilder.java.swing