Thomas Guan wrote:The program basically asks us to give an introduction, ask the user for a name and gender combination and then then it will read the data file. If it finds it it should graph the data. If it doesn't find it there will be a short message saying it is not found. Also if the combination is found there should be a DrawPanel graph for the data.
Well, like Manuel, I'm not sure what your question is.
I'm also no GUI expert, so I can't advise on how to display your graph beyond looking at something like
JGraph; but I can tell you that there are
two components to your problem, and
you should try to keep them as separate as possible:
1. Translating the file data to a
Java Object (
GraphData?), most likely in java.util.Map form.
2. Retrieving entries of that object based on user input and plotting them.
Winston