Results 1 to 2 of 2
Thread: Creating a Database using JTable
- 12-23-2011, 06:51 AM #1Member
- Join Date
- Dec 2011
- Rep Power
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.
- 12-23-2011, 10:00 AM #2
- Join Date
- Sep 2008
- Voorschoten, the Netherlands
- Blog Entries
- Rep Power
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.
JosI have the stamina of a seal; I lie on the beach instead of running on it.
- By madhura2212 in forum AWT / SwingReplies: 5Last Post: 10-05-2010, 02:04 PM
- By hariza in forum AWT / SwingReplies: 6Last Post: 08-25-2010, 03:14 AM
- By Geraldo in forum AWT / SwingReplies: 0Last Post: 06-04-2010, 02:03 PM
- By hendrix79 in forum New To JavaReplies: 2Last Post: 03-09-2009, 11:15 PM
- By makpandian in forum AWT / SwingReplies: 3Last Post: 03-04-2009, 08:16 AM