Results 1 to 4 of 4
  1. #1
    Danieldcc is offline Member
    Join Date
    Sep 2010
    Posts
    83
    Rep Power
    0

    Default creating simple survey

    We have a shared drive at work where I want to put my java jar file and my program. I want to then send an email to everyone with a shortcut in it to the java jar file. Then I want them to be able to open it and a few questions will come up in a jpanel...like (name, address, etc). Now, I will need to store that information. Should I write to text file their input? or create a database? Also, how do I create the program so whenever one of my coworkers will put in info and click the ADD button, the program will update the list on the screen with updated info? Is this somethinng I could do in an evening?

  2. #2
    Wnt2bsleepin is offline Senior Member
    Join Date
    Feb 2012
    Posts
    219
    Rep Power
    3

    Default Re: creating simple survey

    Personally, this is something that I would do with HTML, PHP and an SQL database. It makes organizing large amounts of data easier. Do you want to prevent duplicate entries? How familiar are you with Swing? What about database integration in Java? These are things that you would have to look into. It can be done with Java, probably not too difficult, but I don't think this is something a beginner can do in an evening.

  3. #3
    Danieldcc is offline Member
    Join Date
    Sep 2010
    Posts
    83
    Rep Power
    0

    Default Re: creating simple survey

    creating using Swing is no problem.....i'm familar with jtextfields, jbuttons, jlabels and panels and layouts....so creating the actual form is no big deal. What I don't know how to do is storing and displaying the data the best way. Like, Employee 1 will update the form...I need to store that info somewhere. let's say I store in text file (multiple people using the program at same time, so file might be open when another user tries to update - that's gona be a problem right) . Now I wanna display all the entered information (let's say in JLabels)....How do i take the input from different employees and multiple people running same program on same jlabel on all the versions of the program? Is there a way to run only one version or my program on multiple computers if they have access to same drive?

  4. #4
    Wnt2bsleepin is offline Senior Member
    Join Date
    Feb 2012
    Posts
    219
    Rep Power
    3

    Default Re: creating simple survey

    Yeah, you can't really have multiple people writing to a text file at the same time. You would need to use some type of database. If you wanted to display what other people have submitted to the user (Taken from the database), I would recommend using a JTextArea. You would need to run a unique instance of the program for each user. What you could do is make a server client type of application where the client sends the data back to the server and the server sends some information back to the client.

Similar Threads

  1. Creating a simple menu
    By hvince95 in forum New To Java
    Replies: 7
    Last Post: 01-20-2012, 08:07 AM
  2. Need help for creating simple jsp web application
    By ogi.za.forum in forum Java Servlet
    Replies: 0
    Last Post: 08-15-2009, 05:58 PM
  3. Need help for creating simple jsp web application
    By ogi.za.forum in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 08-15-2009, 05:53 PM
  4. Need help for creating simple jsp web application
    By ogi.za.forum in forum Java Applets
    Replies: 0
    Last Post: 08-15-2009, 05:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •