File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes question on a design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "question on a design" Watch "question on a design" New topic
Author

question on a design

Gene Hilpert
Ranch Hand

Joined: May 22, 2002
Posts: 51

Hi I'm a greenhorn to OOPs and Jave language but not to programing.
I have a question on a design of an application. I works but is there a better way.
My application is for creating and maintaining a class roster.
There is no database just reading and writing to a text file.
It has a collection(arraylist) called members of a class called member that holds name, address and Id.
I read from the text file and create members collection but to edit it I when with a jTable.
So I convert the collection to Object[][], display the jTable and when a
Save button is pressed I update the collection with the Object[][] data. then write the data back to the text file.
There are a lot of steps in doing the converting from the collection to Object[][] and back again,
so I was wondering if there is a better way.
Thanks
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Moving this to the OO design, UML and refactoring forum


Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question on a design