Article View: borland.public.jbuilder.java.swing
Article #9597Newbe: JTable QUestion
From: Gustavo Lopez
Date: Sat, 04 Mar 2000 00:00
Date: Sat, 04 Mar 2000 00:00
38 lines
1606 bytes
1606 bytes
Hi....
I know this is a stupid question .. and I have found many answers (inclusive
code) but it still does not work...
Ok... let me explain .. I just want to add a table... that I could latter
modify (add/delete/sort) its content.. and most IMPORTANT...
want to be able to view its column name...
For the modification part .. I read that I need to define a
abstractTableClass... or something of the sort... I have not gotten to this
part yet.
I am using a Frame for this "practice example" ... maybe that could be the
problem..... maybe I need a panel for this to work.
But aren't they the same?
Either way as a FAQ... showed...
Why doesn't my JTable show the column names?
Although JTable has the column information, it only shows the column headers
when the table is put into a JScrollPane:
panel.add(new JScrollPane(myJTable))
.....
But I tried this without the panel...
just
this.add(new JScrollPane(myJTable)) // where this is a extended Frame
Class...
Doesn't work... Why? beats me....
HELP...
I don't know what I am doing wrong...
Thnks
Gustavo Lopez
Technical Details
Message-ID:
<89qt2p$rn63@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,97faa2859843de5d,start X-Google-Attributes: gid111d45,public From: "Gustavo Lopez" <tuolden@rice.edu> Subject: Newbe: JTable QUestion Date: 2000/03/04 Message-ID: <89qt2p$rn63@bornews.borland.com> X-Deja-AN: 593039568 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing