I've a data source, i've to make a query on this data source, how can
I show all result in a grid (JTable)? I'm using Netbeans 5.5. If
someone of u can suggest me a good guide on the topic.... a lot of
thanks
Dimitri Kurashvili - 28 Feb 2007 14:25 GMT
> I've a data source, i've to make a query on this data source, how can
> I show all result in a grid (JTable)? I'm using Netbeans 5.5. If
> someone of u can suggest me a good guide on the topic.... a lot of
> thanks
It is not so straitforward. You can not simply put ResultSet on
JTable. The best way is to use TableModel interface (you should
implement it using data obtained from database).
Where to read about this?
Try this:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
josh - 01 Mar 2007 01:14 GMT
Mariano napisał(a):
> I've a data source, i've to make a query on this data source, how can
> I show all result in a grid (JTable)? I'm using Netbeans 5.5. If
> someone of u can suggest me a good guide on the topic.... a lot of
> thanks
Take a look at SwingSet project:
http://swingset.sourceforge.net/
They should have everything you need to create an application with
database back-end.
Mariano - 01 Mar 2007 18:00 GMT
On 1 Mar, 02:14, josh <pljosh_malpa_poczta.neostrada...@nospam.org>
wrote:
> Mariano napisał(a):
>
[quoted text clipped - 7 lines]
> They should have everything you need to create an application with
> database back-end.
cool!!! Can u suggest me a good guide about it? Their site is so ppor
of docs.
Witold Szczerba - 01 Mar 2007 19:31 GMT
Mariano napisał(a):
> On 1 Mar, 02:14, josh <pljosh_malpa_poczta.neostrada...@nospam.org>
> wrote:
[quoted text clipped - 11 lines]
> cool!!! Can u suggest me a good guide about it? Their site is so ppor
> of docs.
No, I have never used it.