Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2011
    Rep Power

    Default Creating a Database using JTable

    I will start with a little background information. I am currently a student and don't have much experience in programming yet. Where I work, when an
    accident occurs, a accident report is filled out by hand, and then the information is copied into an Excel spreadsheet. I spoke to the plant manager and he has given me the go ahead to create software to streamline this process and make it a little easier.

    The main aspect of my program will be displaying information. I want to create a database for all of the accidents and thought a JTable would be the best way. I can't figure out how to create a JFrame within the main frame to contain a table for the database.

    Basically, I want to be able to click on the New Database in the File Menu and have it open a blank table. When you click on the new accident in the file
    menu, I want it to bring up a window to fill out the accident report. When the report is filled out and the OK button is selected, I want the table to update with the information entered on the report.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Creating a Database using JTable

    Your project is very vulnerable to 'feature bloat'; i.e. you start with a single user who can enter those 'accident records', next they want other users to be able to do the same at the same time; next they want to be able to do that with their browser, cell phone, toaster or whatever; next they want to protect the entire system against intruders; next they want a coupling wuth Excel, because Excel is so soft for your hands, next they want reports generated automatically each Monday, next they want piecharts ... and the list goes on and on. Better first specify rigidly what your application can and can not do.

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Populating Jtable from database - better way?
    By madhura2212 in forum AWT / Swing
    Replies: 5
    Last Post: 10-05-2010, 03:04 PM
  2. creating a Jtable using swing
    By hariza in forum AWT / Swing
    Replies: 6
    Last Post: 08-25-2010, 04:14 AM
  3. Save JTable to database
    By Geraldo in forum AWT / Swing
    Replies: 0
    Last Post: 06-04-2010, 03:03 PM
  4. JTable and database
    By hendrix79 in forum New To Java
    Replies: 2
    Last Post: 03-09-2009, 11:15 PM
  5. import database in Jtable?
    By makpandian in forum AWT / Swing
    Replies: 3
    Last Post: 03-04-2009, 08:16 AM

Posting Permissions

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