🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9782

Re: JTable problem

#9782
From: Jesper Berglund
Date: Thu, 27 Jan 2000 00:00
63 lines
2394 bytes
This is a multi-part message in MIME format.
--------------ADB58AC2FC518BBB5A0ADDF1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Jurgen!

The JTable uses its TableModel to hold the data that it displays. To add
data get the DefaultTableModel, add,remove or change the some data then call
the JTable.tableChanged() to inform the table to update itself.

Hope this helpes!

Jesper Berglund
Java/C++ developer
Data Ductus
Sweden

Jurgen Berden wrote:

> Hi,
>
> I'm working with a splitpane, one part contains a JTable, the other part
> has a textbox and a pushbutton.
> I would like to manipulate the Table now. In other words the Table needs
> to be changed depending on the textbox' input (and on the actionlistener
> from the pushbutton)
>
> The entire table, data, amount of rows and columns depend thus, on the
> input from the user. It's not a problem to get all the information from
> the table, but for
> some reason I can't update the "JTable"-part of the splitpane and
> actually see it on screen. I can't seem to find a method which updates
> my table.
> Can anyone help me?
>
> Thanks in advance,
>
> Jurgen

--------------ADB58AC2FC518BBB5A0ADDF1
Content-Type: text/x-vcard; charset=us-ascii;
 name="jesper.berglund.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jesper Berglund
Content-Disposition: attachment;
 filename="jesper.berglund.vcf"

begin:vcard 
n:Berglund;Jesper
tel;cell:+46 (0)70 - 555 7954
tel;work:+46 (0)910 - 73 23 00
x-mozilla-html:FALSE
url:http://www.dataductus.se
org:Data Ductus;Development
adr:;;;Skellefte�;;;Sweden
version:2.1
email;internet:Jesper.Berglund@dataductus.se
title:Software Engineere
fn:Jesper Berglund
end:vcard

--------------ADB58AC2FC518BBB5A0ADDF1--
Technical Details
Message-ID: <388FFA10.5A734621@dataductus.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <388F258C.D02558C1@esat.kuleuven.ac.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b81e2823b25cc2ed
X-Google-Attributes: gid111d45,public
From: Jesper Berglund <jesper.berglund@dataductus.se>
Subject: Re: JTable problem
Date: 2000/01/27
Message-ID: <388FFA10.5A734621@dataductus.se>
X-Deja-AN: 578216683
References: <388F258C.D02558C1@esat.kuleuven.ac.be>
X-Accept-Language: en
Content-Type: multipart/mixed; boundary="------------ADB58AC2FC518BBB5A0ADDF1"
X-Trace: 27 Jan 2000 08:56:34 +0100, ns.boliden.se
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing