This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question on a design

 
Gene Hilpert
Ranch Hand
Posts: 51
Eclipse IDE Hibernate Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the OO design, UML and refactoring forum
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic