The Artima Developer Community
Sponsored Link

Java Answers Forum
storing/retrieving input

1 reply on 1 page. Most recent reply: Jun 1, 2002 12:34 PM by Matt Gerrans

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Tom Brownlee

Posts: 1
Nickname: tompol
Registered: May, 2002

storing/retrieving input Posted: May 30, 2002 9:57 PM
Reply to this message Reply
Advertisement
hi guys im new here, looks like a good place to get some answers.

my problem is that i have a swing gui that takes a 4 numbered entry (code number) that represents a user. when entered, and a "retrieve" button is clicked, the details of the person with that code are displayed in the appropriate textfields. If the entry does not exist the user may add details and click the "add" button. hence, if the newly added code is re-entered the newly added details appear.

1)what is best to use to store and retrieve this information( ie: arrays?, vectors?, hashtable?)
2)can i have an example code to see this working.
i can give you my code but it is over 600 lines and contains other functoin bits.

thankyou everyone
tompol :)


Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: storing/retrieving input Posted: Jun 1, 2002 12:34 PM
Reply to this message Reply
I think the best and easiest solution for this would be a database, especially if the number of users will be large. Look at the Sun tutorial for JDBC (there are plenty examples there): http://java.sun.com/docs/books/tutorial/jdbc/

Flat View: This topic has 1 reply on 1 page
Topic: i need help with this code please Previous Topic   Next Topic Topic: need help with java i guess

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use