This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes arrays and arraylist and Vectors oh My Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "arrays and arraylist and Vectors oh My" Watch "arrays and arraylist and Vectors oh My" New topic
Author

arrays and arraylist and Vectors oh My

Mikealan Smith
Greenhorn

Joined: Aug 29, 2003
Posts: 15
Hi.
I'm working on a little project and need a little guidance.
This is a GUI project using SWT, but the SWT is not where i'm having problems.
I have my UI in 1 class called Project7UI and my database code in another class called Project7DB
I have a owner, team and player class.
Here is what i'm trying to accomplish. I have a list box that i load for example with Owner information. When the user selects on a Owner, i'm tring to load a table with related information about the team and players.
I've got the list box loaded fine. I'm returning from the project7DB an array of Owners and then loading my listbox. So far so good.
Now i need to run a sql statement to get the team, player info for selected owner. i've got the SQL but i'm not sure what i need to do return this back from project7db to project7ui. i presume i will create a owner instance, team instance and multiple player instances, but i'm not sure how to get it all back to the caller.
Any ideas will be appreciated.
Thanks
Mike
James Clinton
Ranch Hand

Joined: Jun 23, 2003
Posts: 190
If you are wishing to load the data for team, player info into a table. Sun provide a brill example, see in your J2 install dir.
C:\j2sdk1.4.2_02\demo\jfc\TableExample\src
Hope this helps.
 
wood burning stoves
 
subject: arrays and arraylist and Vectors oh My
 
Similar Threads
Spring MVC JDBC
Simple Accept / Reject Dialog refuses to work
OO design question?
How to add another project as dependency?
Hibernate - can't get the collection (List) when create criteria