java netbeans jtable defaulttablemodel - how to connect them
- From: cernesimon@xxxxxxxxx
- Date: 18 Oct 2005 11:55:12 -0700
Hay!
I am beginner in NetBeans. I have an aplication with JFrame. On it I
have JTable and other things. I want to connect JTable with Vector. I
tried with
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). I wanted to add data with
method data.addRow(vec);. It works if I write code in TextPad and
compile it, but I don't want to write such a long code in text editor.
Have any suggestion?
Thanks in advance, Simon
.
- Follow-Ups:
- Re: java netbeans jtable defaulttablemodel - how to connect them
- From: Roedy Green
- Re: java netbeans jtable defaulttablemodel - how to connect them
- Prev by Date: Re: Ant plugin for Eclipse?
- Next by Date: Re: java netbeans jtable defaulttablemodel - how to connect them
- Previous by thread: Partitioning RMI application into multiple jars?
- Next by thread: Re: java netbeans jtable defaulttablemodel - how to connect them
- Index(es):
Relevant Pages
|
|