Re: java netbeans jtable defaulttablemodel - how to connect them
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Tue, 18 Oct 2005 21:58:09 GMT
On 18 Oct 2005 11:55:12 -0700, cernesimon@xxxxxxxxx wrote or quoted :
>Vector vec = new Vector();
>DefaultTableModel data = new DefaultTableModel();
>JTable table = new JTable(data);
>
>but there is nothing in JTable on my JFrame (after I read file with
>data and wanted to insert it in JTable).
See if you can find a cheap Swing textbook that has some sample JTable
code or some sample code on the net that uses the classes you need.
What you do is create a new class that extends DefaultTableModel and
hence implements TableModel. In that code you write addRow etc. to
insert data into your Vector.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
- Follow-Ups:
- Re: java netbeans jtable defaulttablemodel - how to connect them
- From: cernesimon
- Re: java netbeans jtable defaulttablemodel - how to connect them
- References:
- java netbeans jtable defaulttablemodel - how to connect them
- From: cernesimon
- java netbeans jtable defaulttablemodel - how to connect them
- Prev by Date: java netbeans jtable defaulttablemodel - how to connect them
- Next by Date: Re: Partitioning RMI application into multiple jars?
- Previous by thread: java netbeans jtable defaulttablemodel - how to connect them
- Next by thread: Re: java netbeans jtable defaulttablemodel - how to connect them
- Index(es):