Java Final Project

Java Final Project

I am having a real hard time with this java assignment. Any help or tips will be great!!!

This is the requirements:

Final Project Overview

This document provide a sample of what is possible, and could lead to a project worth the maximum grade of 100% Something to think about!!! Do not think this is what you have to do to get the maximum number of points. It is just a sample! You are only bound by your programming ability. Please do not try and do more than you are capable of. Think, plan, design and code YOUR final project. This is your opportunity to show off your skills!

Overall Appearance

Tabs should be used in this application. At a minimum, 4 fully functioning tabs should be designed ? the Pools tab, the Hot Tubs tab, the customer tab and the Contractors tab.

General Tab

The first tab simply displays the current date. An Exit button is provided in this tab, as well as all others. (For all buttons throughout the application, mnemonic values are set.)


Customers Tab

The Customers tab allows the user to add new customers and checks for the existence of the customer.txt file in the directory where the program is located. If the file does not exist, the program tells the customer in the Message Area at the bottom. The Customer Display will give a brief explanation of the user?s options.



Add Customer

When the user clicks Add Customer, an entry window should appear. If the customer.txt file does not exist, the program tells the customer in the Message Area at the bottom.



In this window, the user can enter customers; the information entered will be stored as entered.



Clicking Add Customer will attempt to write the information to customer.txt. The user should receive an indication when a customer is added successfully.



After a customer has been added and the Customers window is closed, the user can click Refresh to refresh the Customer Display area, which will display the contents of the customer.txt file.



Contractor Tab

The Contractor tab functions in exactly the same way as the Customers tab. The filename for contractors is contract.txt.


Pools Tab

The Pools tab should perform a calculation.



After a length, width, and depth have been entered, the user can click Calculate Volume and the program will display the calculated volume (length * width * depth in cubic feet).



Exception handling is used here to catch exceptions, including incomplete forms, invalid entries, and combinations of these.

Incomplete forms:


Invalid input:



Combination invalid input/incomplete input:



Hot Tubs Tab

The Hot Tubs tab allows for round and oval tubs? volumes to be calculated.


Round Tub

When Round Tub is selected, the user cannot fill out the width field since we?re dealing with a circle. After filling out the length and depth fields, the Calculate Volume button will display the volume (Pi * ((length/2)^2) * depth). The width is automatically set to the same value as the length, and the user is informed.

Again, exception handling is used here.




Oval Tub

When Oval Tub is selected, the width field is opened up:



The formula used to calculate the volume is (Pi * (length * width)^2) * depth.

As with the Pools tab, the same error messages should be displayed in case of no input/invalid values.

Temp Calc Tab

The Temp Calc tab offers a temperature converter (Celsius <-> Fahrenheit).



The user enters a temperature, and selects either C or F. The field after the Result display will display the opposite (if C is selected, field will display F; if F is selected, field will display C).


No input:



Customer Comment section. The customer should be able to type a comment in and submit it.


This is what I have so far:

import java.awt.*;

import javax.swing.*;

public class FinalProject extends JFrame
{
private JLabel textPrompt;
private JTextArea inputText;
private JLabel keyPrompt;
private JTextField inputKey;
Container container;

public FinalProject()
{
super( "Final Project " );

JTabbedPane tab = new JTabbedPane();
// constructing the first panel

JLabel l1 = new JLabel( "Pool" );
JPanel p1 = new JPanel();
tab.addTab( "Pool", null, p1, " Pool" );

// constructing the second panel
JLabel l2 = new JLabel("Hot Tube");
JPanel p2 = new JPanel();

//Pi * (length * width)^2) * depth

tab.addTab( "Hot Tube", null, p2, " Hot Tube" );

// constructing the third panel

JLabel l3 = new JLabel( " Temperature Change!" );
JPanel p3 = new JPanel();
tab.addTab( "Temperature Change", null, p3, " Temperature Change" );

// constructing the fourth panel

JLabel l4 = new JLabel( "Customer" );
JPanel p4 = new JPanel();
tab.addTab( "Customer", null, p4, " Customer" );

// constructing the fifth panel

JLabel l5 = new JLabel( "General" );
JPanel p5 = new JPanel();
tab.addTab( "General", null, p5, " General" );

//constructing the last panel

JLabel l6 = new JLabel( "Manufacture");
JPanel p6 = new JPanel();
tab.addTab( "Manufacture", null, p6, " Manufacture" );

//constructing the Comment panel

JLabel l7= new JLabel("Customer Comments?");
JPanel p7 = new JPanel();
tab.addTab ("Customer Comments?",null,p7,"Customer Comments?");
textPrompt = new JLabel("Customer Comments here please!");
inputText = new JTextArea(5, 15);
inputText.setLineWrap(true);
inputText.setWrapStyleWord(true);

//instantiate two panels, one for input and output
Panel inputPanel = new Panel();

//add components to window
container = getContentPane();

//use borderlayout to position our two i/o panels
container.setLayout(new BorderLayout());
inputPanel.setLayout(new FlowLayout());

//add components to panels
inputPanel.add(textPrompt);
inputPanel.add(inputText);

//add panels to our primary borderlayout
add(inputPanel, BorderLayout.NORTH);

// add JTabbedPane to container
getContentPane().add( tab );

setSize( 400, 250 );
setVisible( true );
}

public static void main( String args[] )
{
FinalProject demo = new FinalProject();
demo.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
}

}

View Answers









Related Tutorials/Questions & Answers:
Final Project - Java Beginners
, but it is suggested that you begin working on the final project assignment in Week 5, which...Final Project  The importance of a graphical user interface in programming is paramount in being successful in the business industry. This project
Final Project II - Java Beginners
Final Project II  Is there anyway I can get the project back by Saturday??? It is due on Sunday by midnight...Thank You
Advertisements
Java Final Project - Java Beginners
Java Final Project  I am having a real hard time with this java... final project. This is your opportunity to show off your skills! Overall...() { super( "Final Project " ); JTabbedPane tab = new JTabbedPane(); // constructing
Java Final Project Error - Java Beginners
Java Final Project Error  It isnt showing the result when I press... inputKey; Container container; public FinalProject() { super( "Final Project " ); JTabbedPane tab = new JTabbedPane(); // constructing the Pool
ModuleNotFoundError: No module named 'Final_Project'
ModuleNotFoundError: No module named 'Final_Project'  Hi, My... 'Final_Project' How to remove the ModuleNotFoundError: No module named 'Final_Project' error? Thanks   Hi, In your python
final year project on artificial intelligence
final year project on artificial intelligence  Hi, I am beginner... to learn: final year project on artificial intelligence Try to provide me good examples or tutorials links so that I can learn the topic "final year
final year project artificial intelligence
final year project artificial intelligence  Hi, I am beginner... to learn: final year project artificial intelligence Try to provide me good examples or tutorials links so that I can learn the topic "final year project
machine learning final year project
: machine learning final year project Try to provide me good examples or tutorials links so that I can learn the topic "machine learning final year...machine learning final year project  Hi, I am beginner in Data
Java Final Variable
Java Final Variable  I have some confusion --Final variable has single copy for each object so can we access final variable through class name,or it is necessary to create object for accessing final variable
Java final keyword
Java final keyword The final is a very important keyword in java, which... with the name "Final" in a Java program. We can have final methods, final... Exampleof final jeyword in Java: public class FinalExample
Java final
Java final       In the Java programming language, the keyword "final" is used with different entity which makes it unchangeable later. We can have final methods, final
final
final  what does final means in "public static final void main (string args[])" ?   keyword final can be assigned only once. They cannot be modified
Final method in java
Final method in java In this section we will learn about Final method in java. Final  keyword in java is used with class, variable and methods. If final is used with method that method will not be overridden in subclass, if final
private and final - Java Interview Questions
and final modifier in java   Hi Friend, Private modifier indicates... be accessed or instantiated outside. Final modifier indicates.... They cannot be overriden by subclasses. The final class can't be extended
Java final Keyword Example
Java final Keyword Example In this section we will read about the final keyword in Java in various context. final keyword in Java can be used... the final keyword can be used in Java applies its main integrity i.e.
Final Methods - Java Tutorials
The final Keyword in Java In Java, final keyword is applied in various context. The final keyword is a modifier means the final class can't be extended.... final classes The class declared as final can't be subclass or extend
Static final variables - Java Beginners
Static final variables  can a static final variable be accessed by a instance (non-static)method?  Hi, static final variable u can... Xyz{ private static final String name="xyz"; public void displayData
Final Key Word in Java
.style1 { text-align: center; } Final key word in java In java final is a key word used in several different contexts. It is used before... is a final variable introduced in java 1.1, its declaration lacks
TYBsc IT final project (MOBILE BASED SMS SEARCH ENGIN)
TYBsc IT final project (MOBILE BASED SMS SEARCH ENGIN)  How to send sms pc to mobile using JSP & Servelet
TYBsc IT final project (MOBILE BASED SMS SEARCH ENGIN)
TYBsc IT final project (MOBILE BASED SMS SEARCH ENGIN)  How to send... modem? Pls give me fast reply becoz my porject(TYBsc IT)final has not been completed. so i requested to you pls answer my question. My project name is MOBILE
Java method final parameter
Java method final parameter       Example below demonstrates the working of java final keyword... set to final. This means double type radius is no more a variable
final keyword
final keyword  why is final keyword used in java
Java final method
;); } } Resource:ADS_TO_REPLACE_2 Final Methods - Java Tutorials Final method in java Java final Keyword Example Java final...final keyword when used with method results in final method, which cannot
Can you give few examples of final classes defined in Java API?
Can you give few examples of final classes defined in Java API?   Hi, Can you give few examples of final classes defined in Java API? thanks
Final Keyword
Final Keyword  hello, What is final?   hiiADS_TO_REPLACE_1 In case of class if we use final then this class can not be extended or final class may not be subclassed. A final method can't be overridden when its class
final variable
final variable  Please give some easiest and understanding example program for final variable
final grade
final grade  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point...?s final grade from 50-100. Evaluate the Final grade and display the Point
The final Keyword
are always implicitly final in Java, since they cannot be overridden... The final Keyword       The final is a keyword. This is similar to const keyword in other
What is final class?
What is final class?  Hi, What is final class? thanks   Hi, A final class is not be saubclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable
Can a main method be declared final?
be override in a subclass. for more about main method be declared final in Java...Can a main method be declared final?   Hi, Can a main method be declared final? Thanks   Hi, Yes we can. The final method can
difference between enum and final class?
difference between enum and final class?  what is the difference between enum and final class in java?   The java.lang.Enum is an abstract class, it is the common base class of all Java language enumeration types
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display... input a student?s final grade from 50-100. Evaluate the Final grade and display
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
compute the final grades
compute the final grades  C. Write a JavaScript program that would input a student?s final grade from 50-100. Evaluate the Final grade and display the Point Equivalent based on the table below. Indicate also the remarks
servlet as final - JSP-Servlet
servlet as final  whether we can declare final for a servlet or not? and give the reason
private static final
private static final  Why there is necessary to make a variable private static final
What is the purpose of declaring a variable as final?
What is the purpose of declaring a variable as final?   Hi, What is the purpose of declaring a variable as final? Thanks   Hi, In Java when we declare a final variable as a variable which has been initialized
PHP Final Keyword
Final Keyword in PHP: If you are familiar with Java then you must know the functionality of Final keyword. Final keyword prevents child classes from overriding a method of super or parent class. If we declare a class as final
important for all final years student
important for all final years student   i need a java program for my project, java program for getting path of the file in console while reading... letter content in from glassorry ,i need it in simple java code meanwhile using
important for all final years student
important for all final years student  i need a java program for my project, java program for getting path of the file in console while reading... it in simple java code meanwhile using some inbuilt function with control flow conditions
important for all final years student
important for all final years student  i need a java program for my project, java program for getting path of the file in console while reading... it in simple java code meanwhile using some inbuilt function with control flow conditions
Can a abstract class be declared final?
Can a abstract class be declared final?   Hi, Can a abstract class be declared final? Thanks
ModuleNotFoundError: No module named 'Outliers-final'
ModuleNotFoundError: No module named 'Outliers-final'  Hi, My... named 'Outliers-final' How to remove the ModuleNotFoundError: No module named 'Outliers-final' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'spriteutil-final'
ModuleNotFoundError: No module named 'spriteutil-final'  Hi, My... named 'spriteutil-final' How to remove the ModuleNotFoundError: No module named 'spriteutil-final' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'Topsis-final'
ModuleNotFoundError: No module named 'Topsis-final'  Hi, My Python... 'Topsis-final' How to remove the ModuleNotFoundError: No module named 'Topsis-final' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'final-class'
ModuleNotFoundError: No module named 'final-class'  Hi, My Python... 'final-class' How to remove the ModuleNotFoundError: No module named 'final-class' error? Thanks   Hi, In your python environment
Final Cut Pro X
Final Cut Pro X The Final Cut Pro X is the name of new innovation in the video... during video editing. In fact, today Final Cut Pro X has created... introduces the many formerly missing in action section of its Final Cut Pro site

Ads