Showroom management project
Showroom management project
Showroom Management
BACHELOR OF COMPUTER
APPLICATION(BCA)
Session:2022-25
Submited by
Komal Yadav(22015003312)
Razia Parveen(2201500356)
Mahima Sharma(22015003319)
Anjali Rajput(22015003260)
Under Guidance Of
Designation: Principal
ACKNOWLEDGEMENT
I thank the Almighty for providing me the opportunity and giving me the
strength to just hang in there and final the job.
And
Mr. Ankit Gupta(Technical Trainer) ) for his support of guidance and valuable
suggestion at the making every stage of this project. His broad knowledge about
JAVA leads me to complete this project and also permitted us to perform this
project and organized everything including the permission for computer
resources.
I would like to express my sincere thanks to Mr. Brajendra Shukla and Mr. Ankit
Guptar who help me to complete this valuable task.
ABSTRACT
PREFACE
INFOWIZ is an 6 years young organization with ISO Certification which has been
working in the field of IT , Embedded System and has been providing its clients
with exceptional quality in Web Design, Web Development and SEO services. Our
clients range from small, medium to large scale Business houses & individuals.
We also provide the off shore companies of US, UK, France, Ireland, Canada and
Australia with quality and timely Web and SEO services.
INFOWIZ does not boast itself of being the best Development Company
but enjoys reputable position among top Web Development and Electronics
companies because of our timely delivery and quality work. Our skilled
team of professionals make sure that the product is developed as per the
customer’s needs and also keeping the customer informed about the
development of his project from time to time. We do not only emphasize on
formulating an attractive solution to our clients but also believe in providing
a workable solution. INFOWIZ offers research based Search Engine
Marketing products that help achieve greater insights to customer’s online
business. Our Research & Development arm offers SEO tools for SEM
professionals.
PROJECT DESCRIPTION
Now when you run the application for the first time the login page
will show. If you have already registered with the site, then enter your
username and password and the application will redirect to your login page.
• How to Login
• In this module, the user will enter his username and password to goto home page.
• Home Page.
REQUIREMENT ANALYSIS
Hardware Requirements
Number Description
1 Computer System
2 1GBRAM
Software Requirements
Number Description
1 Windows XP –7,any OS supporting NetBeans and
MsSQL
2 NetBeans
3 MsSql Server 2005
INTRODUCTION TO TOOLS
FRONT-END/BACK-END
Front-End: NetBeans
Front End:
Backend:
• SQLSERVER– Microsoft SQL Server is a relational database
server, developed by Microsoft: it is a software product whose
primary function is to store and retrieve data as requested by other
software applications, be it those on the same computer or those
running on another computer across a network (including the
Internet). There are at least a dozen different editions of Microsoft
SQL Server aimed at different audiences and for different
workloads (ranging from small applications that store and retrieve
data on the same computer, to millions of users and computers that
access huge amounts of data from the Internet at the same time).
HISTORY
INTRODUCTION TO JAVA
Much of the syntax of Java is the same as C and C++. One major
difference is that Java does not have pointers. However, the biggest
difference is that you must write object oriented code in Java. Procedural
pieces of code can only be embedded in objects. In the following we assume
that the reader has some familiarity with a programming language. In
particular, some familiarity with the syntax of C/C++ is useful.
Java Features
• Integers :
This group includes byte, short, int, and long, which are for
whole-valued signed numbers. Floating-point numbers This group includes
float and double, which represent numbers with fractional precision. All of
these are signed, positive and negative values. Java does not support
unsigned, positive -only integers. The width of an integer type should not
be thought of as the amount of storage it consumes, but rather as the
behavior it defines for variables and expressions of that type.
• Short
• Int
The most commonly used integer type is int. It is a signed 32-bit type
that has a range. Its range is from –2,147,483,648 to 2,147,483,647. Any
time you have an integer expression involving bytes, shorts, ints, and
literal numbers, the entire expression is promoted to int before the
calculation is done.
• Long
Long is a signed 64-bit type and is useful for those occasions where
an int type is not large enough to hold the desired value. The range of a
long is quite large. This makes it useful when big, whole numbers are
needed.
.
• Floating-Point Types
• Float
•
ouble
• Characters
This group includes char, which represents symbols in a
character set, like letters and numbers. In Java, the data type used to store
characters is char. Java uses Unicode to represent characters. Unicode
defines a fully international character set that can represent all of the
characters found in all human languages. In Java char is a 16-bit type. The
range of a char is 0 to 65,536. There are no negative chars. The standard
set of characters known as ASCII still
ranges from 0 to 127 as always, and the extended 8 -bit character set, ISO-
Latin-1, ranges from 0 to 255.
Notice that ch1 is assigned the value 88, which is the ASCII (and
Unicode) value that corresponds to the letter X.
Even though chars are not integers, in many cases you can operate
on them as if they Were integers. This allows you to add two
characters together, or to increment the value of a character
variable.
• Boolean
This group includes boolean, which is a special type for
representing true/false values. You can use these types as -is, or to
construct arrays or your own class types. Thus, they form the basis for
all other types of data that you can create. Java has a simple type, called
boolean, for logical values. It can have only one of two possible
values, true or false. This is the type returned by all relational
operators, such as a < b. boolean is also the type required by the
conditional expressions that govern the control statements such as if
and for.
Here is a program that demonstrates the boolean type:
//
Demonst
rate
boolean
values.
class
BoolTest
{
public static void main(String args[])
{
b
o
o
l
e
a
n
b
;
b
=
f
a
l
s
e
;
System.
out.print
ln("b is
" + b); b
= true;
System.out.println("b is " + b);
// a boolean value can
control the if
statement if(b)
System.out.println("T
his is executed."); b =
false;
if(b) System.out.println("This is not executed.");
// outcome of a relational operator is a boo
lean value System.out.println("10 > 9 is " +
(10 > 9));
}
}
The output generated by this
program is shown
here: b is false
b is true
T
h
i
s
i
s
e
x
e
c
u
t
e
d
.
1
0
>
9
i
s
t
r
u
e
For example, the following fragment casts an int to a byte. If the integer's
value is larger than the range of a byte, it will be reduced modulo byte's
range.
i
n
t
a
;
b
y
t
e
b
;
// ...
b = (byte) a;
The following program demonstrates some type conversions that require casts:
//
D
e
m
o
n
s
t
r
a
t
e
c
a
s
t
s
.
c
l
a
s
s
C
o
n
v
e
r
s
i
o
n
{
public static
void main(String
args []) { byte b;
int i = 257;
double d = 323.142;
System.out.println("\\nConv
ersion of int to byte."); b =
(byte) i;
System.out.println("i and b "
+ i + " " + b);
System.out.println("\\nConver
sion of double to int."); i =
(int) d;
System.out.println("d and i " + d
+ " " + i);
System.out.println("\\nConversi
on of double to byte."); b =
(byte) d;
System.out.println("d and b " + d + " " + b);
}
}
This program generates the
following output:
Conversion of int to byte.
i and b 257 1
Conversion of double to int.
Core Java
Student Guide
Page 19 of 95
d and i
323.14
2 323
Conver
sion of
double
to
byte. d
and b
323.14
2 67
Inheritance in Java
lass inheritance - create a new class as an extension of another class, primarily for
the purpose of code reuse. That is, the derived class inherits the public methods and
public data of the base class. Java only allows a class to have one immediate base class,
i.e., single class inheritance.
nterface inheritance - create a new class to implement the methods defined as part
of an interface for the purpose of subtyping. That is a class that implements an interface
―conforms to‖ (or is constrained by the type of) the interface. Java supports multiple
interface inheritance. In Java, these two kinds of inheritance are made distinct by using
different language syntax. For class inheritance, Java uses the keyword extends and for
interface inheritance Java uses the Keyword implements.
Class inheritance
Constructors in Java
•
t object allocation
— Java assigns each member var its default value
•
f you want, you can give an explicit
initialization class Foo
{
private int a = 12;
private IDoubleVector b = new
DenseDoubVector (2, 0); private double
c;
...
}
• Note: statics only initialized once, at first creation of object of that type
}
Foo bar = new Foo ();
•
hat does this do?
•Note: can have block labeled ―static‖... what happens then?
•
nvoked before anything else is done to the subclass
•
his can cause a chain of invocations, all the way back to ―Object‖
•
f you want another constructor, use call to ―super‖
•
ust be the first statement in a named
constructor class Foo extends Bar {
{
System.out.println (―Hi mom!‖);
}
Foo ()
{
super (2);
Interface
•
t defines a standard and public way of specifying the behavior of classes
•
efines a contract
•
ll methods of an interface are abstract methods
•
efines the signatures of a set of methods, without the body (implementation of the methods)
•
concrete class must implement the interface (all the abstract methods of the Interface)
•
t allows classes, regardless of their locations in the class hierarchy, to implement
common behaviors.
Why Interfaces?
Multi-Threading in java
Thread
• sequentially executed stream of instructions
• Shares address space with other threads
• Has own execution context
You have to specify the work you want the thread to do Define a class that
implements the Runnable interface
Thread Class
public class Thread
{
public Thread(Runnable
R); // Thread ⇒ R.run()
public Thread(Runnable R,
String name);
public void start(); // begin thread execution
...
}
Creating
Threads in
Java
Runnable
interface
Create object implementing Runnable interface Pass it to Thread object via Thread
constructor
• Example
public class MyT implements Runnable
{
public void run() {
… // work for thread
}
}
Thread t = new Thread(new MyT());
// create thread t.start(); // begin
running thread
… // thread executing in parallel
Java swings
What is Swing?
•
n API for Graphical User Interfaces (GUI)
•
reated to provide a more sophisticated set of GUI components than the Abstract
Windows Toolkit (AWT)
•
art of the Java Foundation Classes (JFC)
•
ightweight components because they lookconsistent on platforms
•
all constructor of the JFrame superclass.
•
et an object reference to the content pane container - GUI objects are added to this pane
•
et the layout manager to arrange GUI components in the window
•
nstantiate each component
•
dd each component to the content pane
•
et the window size
•
isplay the window
Swing Components:
•
Label displays an image or read-only text
•
TextField single-line text box for input
•
TextArea multiple line text box
•
PasswordField single line for accepting passwords but not displaying what is typed
•
Button command button
•
RadioButton toggle one in a group
•
CheckBox user selects 0, 1, or more options in a group
•
List list of items to select 1 or more
•
ComboBox dropdown list to select one item
Event Handling
• GUIs are event-driven – user choose to act and the GUI responds via an
event handler To program for this we need to:
•
rite a listener (event handler)
•
nstantiate an object of that class
•
egister the listener on 1 or more components
What fires?
•
TextField and JTextArea – pressing enter; event object =ActionEvent
•
Button – pressing the button; event object = ActionEvent
•
RadioButton, JCheckBox, JComboBox – making a choice; event object = ItemEvent
•
List – selecting an item; event object = ListSelectionEvent
•
ny component – mouseup or mousedown or moving the mouse; event object = MouseEvent
•
Dialog is directly descended from the Dialogclass
•
Dialog contains a rootPane hierarchy including a contentPane
•
ll dialogs are modal, which means the current thread is blocked until user interaction
with it has been completed.
Types of Dialog Boxes
•
OptionPane.showMessageDialog – reports something that has happened to the user
•
OptionPane.showConfirmDialog – asks for a confirming response e.g. yes, no, cancel
•
OptionPane.showInputDialog – prompt the user for input
Showroom Management
In this project we are showing a Showroom Management functionality. In
this Project We have one panel: Admin Panel. Admin can insert ,update or
delete customers to customer details and also staff detais database.
We made this application in Core java and my database is MS SQL Server
2005. We have our database in application folder App_data. To run this
application just attaches this database on your machine and change the
connection string. Now when you run the application for the first time the
login page will show. If you have already registered with the site, then enter
your username and password and the application will redirect to your login
page.
Home page: our home page contains 4 buttons which are bill, customer
details , inventory, staff information.
Registeration page: Any new user will get registered first and then will be
able to goto home page.
Staff info: This page will contain the general information about the staff members of
showroom.
Customer details: This page will contains the basic information about customers .
Inventory: This page will keep the record of number of items present in
showroom as well as required no. of items.
No. of items available/required :this page will help to know no. of item
of that particular product Present and required in showroom.
BIBLIOGRAPHY
2. W3 School
3. Java T Point
4. Git Hub