Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

[NETBEANS] How to display query result in a grid

Thread view: 
Mariano - 28 Feb 2007 10:52 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
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.