/* Program: Programming Fundamentals COIT11222 2014 Term2 Purpose: Assignment two -- Motorcity Motor vehicle Insurance coverage GUI software Programmer: Bernard Li File: CarInsuranceGUI.java Day: 14 August 2014 */ /* Enter your header comment right here */ import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JButton; import javax.swing.JTextArea; import javax.swing.JScrollPane; import javax.swing.JComboBox; import javax.swing.JCheckBox; import javax.swing.JOptionPane; import java.awt.FlowLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.Font; import java.awt.celebration.WindowAdapter; import java.awt.party.WindowEvent; import java.util.ArrayList; general public course CarInsuranceGUI extends JFrame /////////////////////////////////////////////////////////// // declare your info buildings and course variables right here // /////////////////////////////////////////////////////////// // facts of car registrations (four parallel lists) non-public ArrayList regNumbers; private ArrayList ages; personal ArrayList hasAccidents; private ArrayList service fees; // whole quantity of cars and trucks limitation personal static remaining int LIMIT = 10; // regular in calculation of price non-public static closing int AGE_THRESHOLD = 5; private static closing int FEE1 = two hundred; private static last int FEE2 = 350; non-public static remaining double Low cost = 0.twenty five; // GUI parts JLabel registrationLabel; // label for registration discipline JTextField registrationField; // area to enter the cars and trucks's registration JLabel ageLabel; // label for choosing the car's age from drop-down combo box JComboBox ageCombo; // drop-down combo box for selecting the vehicle's age JCheckBox accidentCheckBox; // Look at box for selecting if vehicle has been in a collision or not JButton enterButton; // button for moving into car's depth JButton displayAllButton; // button to Display screen all automobiles entered so far JButton sortButton; // button to kind the vehicle documents by identify JButton searchButton; // button to search for an automobile using It really is registration JButton exitButton; // button to exit This system JTextArea textArea; // textual content region for exhibiting the info JScrollPane scrollPane; // scoll pane for text location scrolling // Constructor general public CarInsuranceGUI() Tremendous("Motorcity Car Coverage"); // invoke JFrame constructor setLayout(new FlowLayout()); // set the structure to stream format registrationLabel = new JLabel("Registration"); // make registration label insert(registrationLabel); // incorporate the label into the JFrame registrationField = new JTextField(15); // create registration field increase(registrationField); // incorporate the registration industry to your JFrame ageLabel = new JLabel("Age"); // make age label add(ageLabel); // add the name label ageCombo = new JComboBox(); // produce the age combo box for (int i = 0; i = LIMIT) JOptionPane.
It will likely be required to pass thenumber of times rented. getCharge() and getFrequentRenterPoints() both comprise things which may well vary with
1 system that usually takes in all the data and prepares Monthly bill and usage allowances based on the very same. This 1 program manages things rather well for businesses and for individual people.
evident I was caught in middle of my Java programming Assignment so I puzzled if someone could do my Homework. I investigated countless Web site and I beloved a information who
Macro virus infect the file hat are made from some application or applications which are mostly include macro information like doc, pps, xls, mdb. So mainly such virus infect the documents Along with the macros and likewise templates and document that happen to be contained inside the file.
Tuition & Charges Tuition costs for SNHU's online degree plans are amid the lowest in the country. We provide money support offers to individuals who qualify, in addition a 30 per cent tuition view publisher site price cut for U.S. service users, equally total and part time, along with the spouses of Individuals on active responsibility.
Building a system that keeps the document of all The brand new Positions in the line will not only help you obtain great marks but will also help you understand how the online environment operates.
The buttons have already been activated and they are connected to acceptable methods during the offered code. Remember to devote some time considering the given code to familiarise by yourself with it and where by You will need to entire the code.
For organizations and individuals dealing in articles work, a search that helps them discover a selected short article is a boon. They can normally go ahead and see that the most effective effects are popping up with excellent ease. Certainly one of the simplest Java project Strategies to work upon and still impress the faculties.
This system makes it possible for Anyone to control his / her taxes nicely. This technique pushes the planet towards a far better-taxed globe.
by their Excellent assistance. I used to be specified the hardest Project of Android. Although it absolutely was obligatory and obligatory to accomplish this project as it was my Ultimate year Project. I had only 5
“UHA” means Urgent Help in Assignments which happens to be for The scholars whose deadline of publishing Assignments or Projects is in close proximity to and they're unable to do their Assignments on their own. So no be concerned!! Our devoted staff for UHA will help you to Obtain your deadlines.
One simply click and you'll reserve your air ticket. Obtaining out to the entire world and looking at the best of all the things is likely to make your lifetime really worth residing. You could appreciate an amazing lifetime. Learners can begin focusing on this project and guide a much better daily life.
I have helped a great number of college students in my university days and now also. I've acquired a Databases Skilled who is highly proficient and extremely outstanding in carrying out Database Projects and Assignments.