This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Tabular form data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Tabular form data" Watch "Tabular form data" New topic
Author

Tabular form data

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Hi Ranchers,

I have a small application that returns a number of rows from an access database.
I want to have the results in a table like format. How can I do that.
Can someone give a simple example on how to return rows in a table format.
Thanks...
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30352
    
150

Patrick,
How do you want to display the results to the user? Examples include web page, text file, swing gui, ...


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Thanks for your response.
I would want to display the results using a swing GUI.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30352
    
150

Patrick,
For the JDBC part, you just need to loop through the resultset. It sounds like this question is more about how to put the results in a table model, so I am moving this to the Swing forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tabular form data