aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Populating JTable from an Oracle DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Populating JTable from an Oracle DB" Watch "Populating JTable from an Oracle DB" New topic
Author

Populating JTable from an Oracle DB

Vincent_Martinez
Greenhorn

Joined: Sep 26, 2001
Posts: 1
I need some guidance on how I can populate a JTable from a DB. I think I may have to extend AbstractTableModel and retrieve the data in this implementation. Then pass that to the JTable? I am not sure. I just want to know the best way to show the users this table that has a fixed number or rows and cells. Any code reference or other ideas would be greatly appreciated. Thanks.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

"Vincent_Martinez"
your name doesn't agree with the javaranch guidelines.
please re-register after reviewing the guidelines at
http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Vincent Martinez
Greenhorn

Joined: Sep 27, 2001
Posts: 3
Sorry about that.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

No problem. Thanks for your prompt action.
I really appreciate it.
FYI...your other account will be deleted.
- satya
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Also, I am closing this thread since you have
posted it again and the other one already has
some replies.
- satya
 
 
subject: Populating JTable from an Oracle DB