Re: How to display query result in a grid



On Feb 28, 6:52 am, "Mariano" <mariano.calan...@xxxxxxxxx> wrote:
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

.



Relevant Pages

  • Connectivity of Microsoft SQL server 2005 and netbeans
    ... I have database of Microsoft SQL server 2005 and my applications are ... Please do guide me how to do connection and access my database? ... How should I write my queries to detele, update etc using netbeans ...
    (microsoft.public.dotnet.general)
  • Re: How to display query result in a grid
    ... Mariano napisał: ... I show all result in a grid? ... I'm using Netbeans 5.5. ... someone of u can suggest me a good guide on the topic.... ...
    (comp.lang.java.programmer)
  • Re: [NETBEANS] How to display query result in a grid
    ... Mariano napisał: ... I show all result in a grid? ... I'm using Netbeans 5.5. ... someone of u can suggest me a good guide on the topic.... ...
    (comp.lang.java.programmer)
  • Re: How to display query result in a grid
    ... I show all result in a grid? ... I'm using Netbeans 5.5. ... someone of u can suggest me a good guide on the topic.... ... Their site is so ppor ...
    (comp.lang.java.programmer)
  • Online TV listing sites (Re: Farewell TV Guide)
    ... >> I have been using Yahoo's guide for a couple of years... ... shows the program descriptions right in the grid, ... a separate click to open a separate description window. ... is or nit, and you have to turn on Javascript to enter the site ...
    (rec.arts.tv)