This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes File Manipulation and JTable Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "File Manipulation and JTable Class" Watch "File Manipulation and JTable Class" New topic
Author

File Manipulation and JTable Class

Richard Mendoza
Ranch Hand

Joined: Feb 26, 2003
Posts: 48
I have created a file that contains five kinds of data namely prodcode, prodname, quantity, price and totalamount.
In my frame, I have a combo box that loads the prodcodes stored in the file. What I want is, if I have chosen a certain prodcode in the combo box, it should load the other details for that prodcode in the JTable.
Can somebody give me a sample code on how am I going to do it?
Please help....
Thanks!

Richard
Ajay Singhal
Ranch Hand

Joined: Jan 10, 2001
Posts: 37
Hi,
i think you need to get your hands on java i/o.
FYI - parse the records into an array and pass it onto JTable. or create a model if you are familiar with and add records using model.
Ajay
 
Have you checked out Aspose?
 
subject: File Manipulation and JTable Class
 
It's not a secret anymore!