You are on page 1of 61

INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

INVENTORY CONTROL SYSTEM

Submitted to Ms. Coronado of the College of the

Engineering and Information Technology – Department of Information Technology

In partial fulfillment

of the requirements for DCIT 50 – Object-Oriented Programming

Nicole James Conwi 201414408

November 22,2017

______________________________________________________________________________________

DECLARATION OF WORK

We,___________________________________________, solemnly declare that the submitted project for


DCIT50 – Object-Oriented Programming is our original work

__________________________________

__________________________________
Full Name over Signature

HISTORY OF THE ORGANIZATION

Crisanto U. Pascual jr. graduated with a degree of BSL. His pre-law course was BS Accountancy.
He founded the Crisanto U. Pascual jr. Notary public in a small subdivision in which he lives. As the time passes by, His name
has been acknowledged by many for his loyal services. He opened larger branch of office in the same area but wider space. His
notary public has been in establishment for 8 years now. At the present time, Atty. Crisanto U. Pascual jr. is working as
company lawyer in airport somewhere in metro manila. He hired Notarial Assistants in order to keep record of his clients and
also to organize appointments in dates.

VISION

-To serve the Filipino public and communities under our jurisdiction with courtesy and efficiency and with principled
discipline.

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

-To instill a spirit of nationalism, inclusivity and cooperation, transparency trust, mutual courtesy, initiative and
creativity.
-To promote trade, culture, tourism, education, and other goals as may be formulated.

MISSION

-Act toward our publics with the Filipino values of courtesy and respect and a renewed spirit of efficiency.
-Promote the values mentioned above among ourselves.
-Work toward establishing or bettering ties with our host country and those under our jurisdictions.

PROFILE

NOTARY PUBLIC ASSISTANTS:

PAMELA MAE A. CONWI

MARY JANE C. ISHII

NICOLE JAMES A. CONWI (PART TIME ASSISTANT)

Purpose of the system

This system makes the employee to store the client’s primary information for the purpose of record keeping.

System Description

Law Office Client Records can add, update, delete and store data inputs. Simple system.

(*gumawa ka pa ng isa pang table inheritance tapos lagay mo yung yung inheritance nato NewJFrame extends javax.swing.JFrame {

public NewJFrame() ) alam mo na yan. tapos yung cd kay rio na burn tayo sa laptop mo bukas edit mo na rin lahat ng kailangan or
kulang dito.

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

*ENCAPSULATION

CLASS NAME METHOD NAME ATTRIBUTES ACCESS SCPECIFIER OTHER CLASSES


THAT REUSE
ATTRIBUTES

*POLYMORPHISM

CLASS NAME METHOD NAME OTHER CLASSES THAT


APPLIES
POLYMORPHISM

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

USER INTERFACE

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jPanel1 = new javax.swing.JPanel(); ups1 = new javax.swing.JTable();


Program Listing
jTextField8 = new javax.swing.JTextField(); jButton8 = new javax.swing.JButton();
package project;

jLabel9 = new javax.swing.JLabel(); jButton50 = new javax.swing.JButton();


import com.mysql.jdbc.Connection;

jLabel7 = new javax.swing.JLabel(); jFrame6 = new javax.swing.JFrame();


import java.sql.DriverManager;

jLabel10 = new javax.swing.JLabel(); jScrollPane4 = new javax.swing.JScrollPane();


import java.sql.ResultSet;

jButton3 = new javax.swing.JButton(); ups2 = new javax.swing.JTable();


import java.sql.Statement;

jButton4 = new javax.swing.JButton(); jLabel21 = new javax.swing.JLabel();


import javax.swing.JOptionPane;

jTextField9 = new javax.swing.JTextField(); jButton9 = new javax.swing.JButton();


import javax.swing.table.DefaultTableModel;

jTextField10 = new javax.swing.JTextField(); jLabel19 = new javax.swing.JLabel();

jButton47 = new javax.swing.JButton(); jTextField13 = new javax.swing.JTextField();


public class NewJFrame extends javax.swing.JFrame {

jFrame3 = new javax.swing.JFrame(); jButton51 = new javax.swing.JButton();


public NewJFrame() {

jLabel11 = new javax.swing.JLabel(); jFrame7 = new javax.swing.JFrame();


initComponents();

jPanel2 = new javax.swing.JPanel(); jLabel20 = new javax.swing.JLabel();


}

jLabel12 = new javax.swing.JLabel(); jTextField14 = new javax.swing.JTextField();


@SuppressWarnings("unchecked")

jLabel13 = new javax.swing.JLabel(); jButton10 = new javax.swing.JButton();


// <editor-fold defaultstate="collapsed" desc="Generated
Code">
jTextField1 = new javax.swing.JTextField(); jLabel22 = new javax.swing.JLabel();

private void initComponents() {


jTextField2 = new javax.swing.JTextField(); jScrollPane5 = new javax.swing.JScrollPane();

jButton5 = new javax.swing.JButton(); ups3 = new javax.swing.JTable();

jFrame1 = new javax.swing.JFrame();


jButton6 = new javax.swing.JButton(); jButton52 = new javax.swing.JButton();

jLabel1 = new javax.swing.JLabel();


jButton48 = new javax.swing.JButton(); jFrame8 = new javax.swing.JFrame();

jLabel2 = new javax.swing.JLabel();


jFrame4 = new javax.swing.JFrame(); jLabel23 = new javax.swing.JLabel();

jLabel3 = new javax.swing.JLabel();


jLabel15 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel();

jLabel4 = new javax.swing.JLabel();


jButton7 = new javax.swing.JButton(); jLabel25 = new javax.swing.JLabel();

jLabel8 = new javax.swing.JLabel();


jScrollPane1 = new javax.swing.JScrollPane(); jLabel26 = new javax.swing.JLabel();

jTextField3 = new javax.swing.JTextField();


ups = new javax.swing.JTable(); jLabel27 = new javax.swing.JLabel();

jTextField4 = new javax.swing.JTextField();


jButton49 = new javax.swing.JButton(); jLabel28 = new javax.swing.JLabel();

jTextField5 = new javax.swing.JTextField();


jFrame5 = new javax.swing.JFrame(); jLabel29 = new javax.swing.JLabel();

jTextField6 = new javax.swing.JTextField();


jLabel16 = new javax.swing.JLabel(); jLabel30 = new javax.swing.JLabel();

jButton1 = new javax.swing.JButton();


jPanel3 = new javax.swing.JPanel(); jTextField15 = new javax.swing.JTextField();

jButton2 = new javax.swing.JButton();


jLabel17 = new javax.swing.JLabel(); jTextField16 = new javax.swing.JTextField();

jButton46 = new javax.swing.JButton();


jLabel18 = new javax.swing.JLabel(); jTextField17 = new javax.swing.JTextField();

jFrame2 = new javax.swing.JFrame();


jTextField11 = new javax.swing.JTextField(); jTextField18 = new javax.swing.JTextField();

jTextField7 = new javax.swing.JTextField();


jTextField12 = new javax.swing.JTextField(); jTextField19 = new javax.swing.JTextField();

jLabel5 = new javax.swing.JLabel();


jScrollPane3 = new javax.swing.JScrollPane(); jTextField20 = new javax.swing.JTextField();

jLabel6 = new javax.swing.JLabel();


Nicole James Conwi 201414408
INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jTextField21 = new javax.swing.JTextField(); jScrollPane2 = new javax.swing.JScrollPane(); jTextField36 = new javax.swing.JTextField();

jButton11 = new javax.swing.JButton(); jTable1 = new javax.swing.JTable(); jLabel53 = new javax.swing.JLabel();

jButton12 = new javax.swing.JButton(); jButton19 = new javax.swing.JButton(); jTextField37 = new javax.swing.JTextField();

jButton53 = new javax.swing.JButton(); jFrame12 = new javax.swing.JFrame(); jButton24 = new javax.swing.JButton();

jFrame9 = new javax.swing.JFrame(); jLabel42 = new javax.swing.JLabel(); jButton25 = new javax.swing.JButton();

jPanel4 = new javax.swing.JPanel(); jButton20 = new javax.swing.JButton(); jLabel54 = new javax.swing.JLabel();

jLabel36 = new javax.swing.JLabel(); jScrollPane6 = new javax.swing.JScrollPane(); jTextField38 = new javax.swing.JTextField();

jTextField26 = new javax.swing.JTextField(); jTable2 = new javax.swing.JTable(); buttonGroup1 = new javax.swing.ButtonGroup();

jLabel38 = new javax.swing.JLabel(); jButton21 = new javax.swing.JButton(); jScrollPane7 = new javax.swing.JScrollPane();

jTextField27 = new javax.swing.JTextField(); jLabel43 = new javax.swing.JLabel(); jTextArea1 = new javax.swing.JTextArea();

jLabel35 = new javax.swing.JLabel(); jTextField30 = new javax.swing.JTextField(); jFrame14 = new javax.swing.JFrame();

jLabel34 = new javax.swing.JLabel(); jFrame13 = new javax.swing.JFrame(); jLabel55 = new javax.swing.JLabel();

jTextField25 = new javax.swing.JTextField(); jLabel44 = new javax.swing.JLabel(); jButton26 = new javax.swing.JButton();

jTextField24 = new javax.swing.JTextField(); jLabel45 = new javax.swing.JLabel(); jScrollPane8 = new javax.swing.JScrollPane();

jLabel37 = new javax.swing.JLabel(); jTextField31 = new javax.swing.JTextField(); jTable3 = new javax.swing.JTable();

jLabel33 = new javax.swing.JLabel(); jLabel46 = new javax.swing.JLabel(); jButton27 = new javax.swing.JButton();

jTextField28 = new javax.swing.JTextField(); jRadioButton1 = new javax.swing.JRadioButton(); jFrame15 = new javax.swing.JFrame();

jTextField23 = new javax.swing.JTextField(); jLabel47 = new javax.swing.JLabel(); jLabel56 = new javax.swing.JLabel();

jLabel31 = new javax.swing.JLabel(); jRadioButton2 = new javax.swing.JRadioButton(); jLabel57 = new javax.swing.JLabel();

jLabel32 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox(); jScrollPane9 = new javax.swing.JScrollPane();

jTextField22 = new javax.swing.JTextField(); jComboBox2 = new javax.swing.JComboBox(); jTable4 = new javax.swing.JTable();

jButton13 = new javax.swing.JButton(); jComboBox3 = new javax.swing.JComboBox(); jButton28 = new javax.swing.JButton();

jButton14 = new javax.swing.JButton(); jLabel48 = new javax.swing.JLabel(); jButton29 = new javax.swing.JButton();

jButton54 = new javax.swing.JButton(); jTextField32 = new javax.swing.JTextField(); jTextField39 = new javax.swing.JTextField();

jFrame10 = new javax.swing.JFrame(); jLabel49 = new javax.swing.JLabel(); jFrame16 = new javax.swing.JFrame();

jLabel39 = new javax.swing.JLabel(); jLabel50 = new javax.swing.JLabel(); jButton30 = new javax.swing.JButton();

jLabel40 = new javax.swing.JLabel(); jTextField34 = new javax.swing.JTextField(); jButton31 = new javax.swing.JButton();

jTextField29 = new javax.swing.JTextField(); jButton22 = new javax.swing.JButton(); jTextField40 = new javax.swing.JTextField();

jButton15 = new javax.swing.JButton(); jButton23 = new javax.swing.JButton(); jScrollPane10 = new javax.swing.JScrollPane();

jButton16 = new javax.swing.JButton(); jTextField35 = new javax.swing.JTextField(); jTable5 = new javax.swing.JTable();

jButton17 = new javax.swing.JButton(); jPanel5 = new javax.swing.JPanel(); jLabel58 = new javax.swing.JLabel();

jFrame11 = new javax.swing.JFrame(); jLabel51 = new javax.swing.JLabel(); jLabel59 = new javax.swing.JLabel();

jLabel41 = new javax.swing.JLabel(); jTextField33 = new javax.swing.JTextField(); jFrame17 = new javax.swing.JFrame();

jButton18 = new javax.swing.JButton(); jLabel52 = new javax.swing.JLabel(); jLabel60 = new javax.swing.JLabel();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jTextField41 = new javax.swing.JTextField(); jTextField49 = new javax.swing.JTextField(); jMenuItem9 = new javax.swing.JMenuItem();

jTextField42 = new javax.swing.JTextField(); jButton41 = new javax.swing.JButton(); jMenuItem10 = new javax.swing.JMenuItem();

jLabel61 = new javax.swing.JLabel(); jScrollPane12 = new javax.swing.JScrollPane(); jMenuItem11 = new javax.swing.JMenuItem();

jTextField43 = new javax.swing.JTextField(); jTable7 = new javax.swing.JTable(); jMenu7 = new javax.swing.JMenu();

jLabel62 = new javax.swing.JLabel(); jFrame21 = new javax.swing.JFrame(); jMenuItem12 = new javax.swing.JMenuItem();

jButton32 = new javax.swing.JButton(); jLabel73 = new javax.swing.JLabel(); jMenuItem13 = new javax.swing.JMenuItem();

jButton33 = new javax.swing.JButton(); jScrollPane13 = new javax.swing.JScrollPane(); jMenu4 = new javax.swing.JMenu();

jLabel63 = new javax.swing.JLabel(); jTable8 = new javax.swing.JTable(); jMenuItem19 = new javax.swing.JMenuItem();

jTextField44 = new javax.swing.JTextField(); jLabel74 = new javax.swing.JLabel(); jMenuItem21 = new javax.swing.JMenuItem();

jLabel64 = new javax.swing.JLabel(); jButton42 = new javax.swing.JButton(); jMenuItem22 = new javax.swing.JMenuItem();

jTextField45 = new javax.swing.JTextField(); jButton43 = new javax.swing.JButton(); jMenu11 = new javax.swing.JMenu();

jLabel65 = new javax.swing.JLabel(); jTextField50 = new javax.swing.JTextField(); jMenuItem20 = new javax.swing.JMenuItem();

jLabel66 = new javax.swing.JLabel(); jFrame22 = new javax.swing.JFrame(); jMenuItem23 = new javax.swing.JMenuItem();

jLabel67 = new javax.swing.JLabel(); jLabel75 = new javax.swing.JLabel(); jMenu5 = new javax.swing.JMenu();

jTextField47 = new javax.swing.JTextField(); jLabel76 = new javax.swing.JLabel(); jMenuItem15 = new javax.swing.JMenuItem();

jButton34 = new javax.swing.JButton(); jScrollPane14 = new javax.swing.JScrollPane(); jMenu9 = new javax.swing.JMenu();

jTextField48 = new javax.swing.JTextField(); jTable9 = new javax.swing.JTable(); jMenuItem16 = new javax.swing.JMenuItem();

jFrame18 = new javax.swing.JFrame(); jTextField51 = new javax.swing.JTextField(); jMenu10 = new javax.swing.JMenu();

jButton35 = new javax.swing.JButton(); jButton44 = new javax.swing.JButton(); jMenuItem17 = new javax.swing.JMenuItem();

jButton36 = new javax.swing.JButton(); jButton45 = new javax.swing.JButton(); jMenuItem18 = new javax.swing.JMenuItem();

jButton37 = new javax.swing.JButton(); jLabel14 = new javax.swing.JLabel(); jMenu6 = new javax.swing.JMenu();

jTextField46 = new javax.swing.JTextField(); jMenuBar1 = new javax.swing.JMenuBar(); jMenuItem14 = new javax.swing.JMenuItem();

jLabel68 = new javax.swing.JLabel(); jMenu1 = new javax.swing.JMenu();

jLabel69 = new javax.swing.JLabel(); jMenuItem1 = new javax.swing.JMenuItem(); jFrame1.setTitle("Item Data");

jFrame19 = new javax.swing.JFrame(); jMenuItem2 = new javax.swing.JMenuItem(); jFrame1.setLocationByPlatform(true);

jButton38 = new javax.swing.JButton(); jMenuItem3 = new javax.swing.JMenuItem(); jFrame1.setMinimumSize(new java.awt.Dimension(400,


267));
jButton39 = new javax.swing.JButton(); jMenu2 = new javax.swing.JMenu();
jFrame1.setResizable(false);
jScrollPane11 = new javax.swing.JScrollPane(); jMenuItem5 = new javax.swing.JMenuItem();

jTable6 = new javax.swing.JTable(); jMenu8 = new javax.swing.JMenu();


jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); //
jLabel70 = new javax.swing.JLabel(); jMenuItem4 = new javax.swing.JMenuItem(); NOI18N

jFrame20 = new javax.swing.JFrame(); jMenuItem6 = new javax.swing.JMenuItem(); jLabel1.setText("Item Data");

jLabel71 = new javax.swing.JLabel(); jMenuItem7 = new javax.swing.JMenuItem();

jButton40 = new javax.swing.JButton(); jMenu3 = new javax.swing.JMenu(); jLabel2.setText("Item Code :");

jLabel72 = new javax.swing.JLabel(); jMenuItem8 = new javax.swing.JMenuItem();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jLabel3.setText("Item Name :"); .addComponent(jTextField4,


jFrame1Layout.createParallelGroup(javax.swing.GroupLayout. javax.swing.GroupLayout.PREFERRED_SIZE, 141,
Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE))

jLabel4.setText("Stock - in - Hand :");


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, .addGroup(jFrame1Layout.createSequentialGroup()
jFrame1Layout.createSequentialGroup()
.addComponent(jLabel4,
jLabel8.setText("Rate :"); .addContainerGap(146, Short.MAX_VALUE) javax.swing.GroupLayout.PREFERRED_SIZE, 158,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 158,
jButton1.setText("Insert "); javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE,
jButton1.addActionListener(new .addGap(96, 96, 96)) Short.MAX_VALUE)
java.awt.event.ActionListener() {
.addGroup(jFrame1Layout.createSequentialGroup() .addComponent(jTextField3,
public void javax.swing.GroupLayout.PREFERRED_SIZE, 141,
actionPerformed(java.awt.event.ActionEvent evt) { .addGap(23, 23, 23) javax.swing.GroupLayout.PREFERRED_SIZE)))

jButton1ActionPerformed(evt); .addContainerGap(74, Short.MAX_VALUE))


.addGroup(jFrame1Layout.createParallelGroup(javax.swing.Gr
} oupLayout.Alignment.LEADING) .addGroup(jFrame1Layout.createSequentialGroup()

}); .addGap(51, 51, 51)


.addGroup(jFrame1Layout.createSequentialGroup()
.addComponent(jButton1)
.addComponent(jLabel8,
jButton2.setText("Reset"); javax.swing.GroupLayout.PREFERRED_SIZE, 158, .addGap(55, 55, 55)
javax.swing.GroupLayout.PREFERRED_SIZE)
jButton2.addActionListener(new .addComponent(jButton2)
java.awt.event.ActionListener() {
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGap(43, 43, 43)
public void ent.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE,
actionPerformed(java.awt.event.ActionEvent evt) { Short.MAX_VALUE) .addComponent(jButton46)

jButton2ActionPerformed(evt); .addComponent(jTextField6, .addContainerGap(70, Short.MAX_VALUE))


javax.swing.GroupLayout.PREFERRED_SIZE, 141,
} javax.swing.GroupLayout.PREFERRED_SIZE)) );

}); jFrame1Layout.setVerticalGroup(
.addGroup(jFrame1Layout.createSequentialGroup()

.addComponent(jLabel3, jFrame1Layout.createParallelGroup(javax.swing.GroupLayout.
jButton46.setText("Back"); javax.swing.GroupLayout.PREFERRED_SIZE, 158, Alignment.LEADING)
javax.swing.GroupLayout.PREFERRED_SIZE)
jButton46.addActionListener(new .addGroup(jFrame1Layout.createSequentialGroup()
java.awt.event.ActionListener() {
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addContainerGap()
public void ent.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE,
actionPerformed(java.awt.event.ActionEvent evt) { Short.MAX_VALUE) .addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 24,
jButton46ActionPerformed(evt); .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.PREFERRED_SIZE, 141,
} javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18)

});
.addGroup(jFrame1Layout.createSequentialGroup() .addGroup(jFrame1Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.BASELINE)
.addComponent(jLabel2,
javax.swing.GroupLayout jFrame1Layout = new javax.swing.GroupLayout.PREFERRED_SIZE, 158, .addComponent(jLabel2,
javax.swing.GroupLayout(jFrame1.getContentPane()); javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE)
jFrame1.getContentPane().setLayout(jFrame1Layout);
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addComponent(jTextField4,
jFrame1Layout.setHorizontalGroup( ent.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE,
Short.MAX_VALUE) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

}
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.RELATED) jFrame2.setTitle("Item Data"); });

jFrame2.setLocationByPlatform(true);
.addGroup(jFrame1Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.BASELINE) jFrame2.setMinimumSize(new java.awt.Dimension(426, jButton47.setText("Back");
400));
.addComponent(jLabel3, jButton47.addActionListener(new
javax.swing.GroupLayout.PREFERRED_SIZE, 24, jFrame2.setResizable(false); java.awt.event.ActionListener() {
javax.swing.GroupLayout.PREFERRED_SIZE)
public void
.addComponent(jTextField5, actionPerformed(java.awt.event.ActionEvent evt) {
javax.swing.GroupLayout.PREFERRED_SIZE, jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); //
javax.swing.GroupLayout.DEFAULT_SIZE, NOI18N jButton47ActionPerformed(evt);
javax.swing.GroupLayout.PREFERRED_SIZE))
jLabel5.setText("Item Data"); }

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem });
ent.RELATED)
jLabel6.setText("Enter Code of item to be updated :");

.addGroup(jFrame1Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout jPanel1Layout = new


oupLayout.Alignment.BASELINE) javax.swing.GroupLayout(jPanel1);

.addComponent(jLabel8, jPanel1.setBorder(javax.swing.BorderFactory.createTitledBord jPanel1.setLayout(jPanel1Layout);


javax.swing.GroupLayout.PREFERRED_SIZE, 24, er("Enter Data :"));
javax.swing.GroupLayout.PREFERRED_SIZE) jPanel1Layout.setHorizontalGroup(

.addComponent(jTextField6,
javax.swing.GroupLayout.PREFERRED_SIZE, jLabel9.setText("Rate :"); jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.A
javax.swing.GroupLayout.DEFAULT_SIZE, lignment.LEADING)
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
jLabel7.setText("Stock - in - Hand :");
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGap(34, 34, 34)
ent.RELATED)
.addComponent(jButton3)
jLabel10.setText("Item Name :");
.addGroup(jFrame1Layout.createParallelGroup(javax.swing.Gr .addGap(50, 50, 50)
oupLayout.Alignment.BASELINE)
.addComponent(jButton4)
.addComponent(jLabel4, jButton3.setText("Update");
javax.swing.GroupLayout.PREFERRED_SIZE, 24, .addGap(41, 41, 41)
javax.swing.GroupLayout.PREFERRED_SIZE) jButton3.addActionListener(new
java.awt.event.ActionListener() { .addComponent(jButton47)
.addComponent(jTextField3,
javax.swing.GroupLayout.PREFERRED_SIZE, public void .addContainerGap(52, Short.MAX_VALUE))
javax.swing.GroupLayout.DEFAULT_SIZE, actionPerformed(java.awt.event.ActionEvent evt) {
javax.swing.GroupLayout.PREFERRED_SIZE))
jButton3ActionPerformed(evt); .addGroup(jPanel1Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem }
ent.RELATED, 46, Short.MAX_VALUE) .addGroup(jPanel1Layout.createSequentialGroup()
});
.addGap(27, 27, 27)
.addGroup(jFrame1Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.BASELINE)
jButton4.setText("Reset"); .addGroup(jPanel1Layout.createParallelGroup(javax.swing.Gr
.addComponent(jButton1) oupLayout.Alignment.LEADING)
jButton4.addActionListener(new
.addComponent(jButton2) java.awt.event.ActionListener() {
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jButton46)) public void
actionPerformed(java.awt.event.ActionEvent evt) { .addComponent(jLabel9,
.addGap(21, 21, 21)) javax.swing.GroupLayout.PREFERRED_SIZE, 158,
jButton4ActionPerformed(evt); javax.swing.GroupLayout.PREFERRED_SIZE)
);

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGroup(jPanel1Layout.createParallelGroup(javax.swing.Gr jFrame2Layout.createParallelGroup(javax.swing.GroupLayout.


ent.RELATED, 6, Short.MAX_VALUE) oupLayout.Alignment.LEADING) Alignment.LEADING)

.addComponent(jTextField10, .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jFrame2Layout.createSequentialGroup()


javax.swing.GroupLayout.PREFERRED_SIZE, 141,
javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap() .addGap(28, 28, 28)

.addComponent(jLabel6,
.addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.DEFAULT_SIZE,
oupLayout.Alignment.BASELINE) javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel10,
javax.swing.GroupLayout.PREFERRED_SIZE, 158, .addComponent(jLabel10,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE, 24, .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
javax.swing.GroupLayout.PREFERRED_SIZE) ent.UNRELATED)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addComponent(jTextField9, .addComponent(jTextField7,


ent.RELATED, 6, Short.MAX_VALUE) javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE, 167,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE))
javax.swing.GroupLayout.PREFERRED_SIZE, 141, .addGap(53, 53, 53))
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGroup(jFrame2Layout.createSequentialGroup()
ent.RELATED)
.addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap()

.addComponent(jLabel7, .addGroup(jPanel1Layout.createParallelGroup(javax.swing.Gr .addComponent(jPanel1,


javax.swing.GroupLayout.PREFERRED_SIZE, 158, oupLayout.Alignment.BASELINE) javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.DEFAULT_SIZE,
.addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.PREFERRED_SIZE, 24,
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem javax.swing.GroupLayout.PREFERRED_SIZE)
ent.RELATED, 6, Short.MAX_VALUE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
.addComponent(jTextField10, Short.MAX_VALUE))
.addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))) javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jFrame2Layout.createSequentialGroup()
.addGap(28, 28, 28)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
); ent.RELATED) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
jPanel1Layout.setVerticalGroup(
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Gr .addComponent(jLabel5,
oupLayout.Alignment.BASELINE) javax.swing.GroupLayout.PREFERRED_SIZE, 158,
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.A javax.swing.GroupLayout.PREFERRED_SIZE)
lignment.LEADING) .addComponent(jLabel7,
javax.swing.GroupLayout.PREFERRED_SIZE, 24, .addGap(128, 128, 128))
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, );
jPanel1Layout.createSequentialGroup() .addComponent(jTextField8,
javax.swing.GroupLayout.PREFERRED_SIZE, jFrame2Layout.setVerticalGroup(
.addContainerGap(141, Short.MAX_VALUE) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
jFrame2Layout.createParallelGroup(javax.swing.GroupLayout.
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Gr .addContainerGap(80, Short.MAX_VALUE))) Alignment.LEADING)
oupLayout.Alignment.BASELINE)
); .addGroup(jFrame2Layout.createSequentialGroup()
.addComponent(jButton3)
.addContainerGap()
.addComponent(jButton47)
javax.swing.GroupLayout jFrame2Layout = new .addComponent(jLabel5,
.addComponent(jButton4)) javax.swing.GroupLayout(jFrame2.getContentPane()); javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap()) jFrame2.getContentPane().setLayout(jFrame2Layout);
.addGap(18, 18, 18)
jFrame2Layout.setHorizontalGroup(

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addGroup(jFrame2Layout.createParallelGroup(javax.swing.Gr jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.A .addGroup(jPanel2Layout.createParallelGroup(javax.swing.Gr


oupLayout.Alignment.BASELINE) lignment.LEADING) oupLayout.Alignment.BASELINE)

.addComponent(jLabel6, .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel13,


javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap() javax.swing.GroupLayout.PREFERRED_SIZE)

.addComponent(jTextField7, .addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, .addGroup(jPanel2Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, oupLayout.Alignment.LEADING) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(39, 39, 39) .addContainerGap(25, Short.MAX_VALUE))
.addComponent(jLabel12,
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 170, );
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem jButton5.setText("Delete");
ent.RELATED)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, jButton5.addActionListener(new
Short.MAX_VALUE)) .addComponent(jTextField1, java.awt.event.ActionListener() {
javax.swing.GroupLayout.PREFERRED_SIZE, 152,
); javax.swing.GroupLayout.PREFERRED_SIZE)) public void
actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(jPanel2Layout.createSequentialGroup()
jButton5ActionPerformed(evt);
jFrame3.setTitle("Item Data"); .addComponent(jLabel13,
javax.swing.GroupLayout.PREFERRED_SIZE, 170, }
jFrame3.setLocationByPlatform(true); javax.swing.GroupLayout.PREFERRED_SIZE)
});
jFrame3.setMinimumSize(new java.awt.Dimension(400,
320)); .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.RELATED)
jFrame3.setResizable(false); jButton6.setText("Reset");
.addComponent(jTextField2,
javax.swing.GroupLayout.PREFERRED_SIZE, 152, jButton6.addActionListener(new
javax.swing.GroupLayout.PREFERRED_SIZE))) java.awt.event.ActionListener() {
jLabel11.setFont(new java.awt.Font("Tahoma", 1, 14)); //
NOI18N .addContainerGap(20, Short.MAX_VALUE)) public void
actionPerformed(java.awt.event.ActionEvent evt) {
jLabel11.setText("Item Data"); );
jButton6ActionPerformed(evt);
jPanel2Layout.setVerticalGroup(
}

jPanel2.setBorder(javax.swing.BorderFactory.createTitledBord jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.A });


er("Enter any one of the following to delete data :")); lignment.LEADING)

.addGroup(jPanel2Layout.createSequentialGroup()
jButton48.setText("Back");
jLabel12.setText("Enter Item Code :"); .addContainerGap()
jButton48.addActionListener(new
java.awt.event.ActionListener() {
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.Gr
jLabel13.setText("Enter Item Name :"); oupLayout.Alignment.BASELINE) public void
actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(jLabel12,
javax.swing.GroupLayout.PREFERRED_SIZE, 23, jButton48ActionPerformed(evt);
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout(jPanel2); }
.addComponent(jTextField1,
jPanel2.setLayout(jPanel2Layout); javax.swing.GroupLayout.PREFERRED_SIZE, });
javax.swing.GroupLayout.DEFAULT_SIZE,
jPanel2Layout.setHorizontalGroup( javax.swing.GroupLayout.PREFERRED_SIZE))

.addGap(18, 18, 18)

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

javax.swing.GroupLayout jFrame3Layout = new .addGap(45, 45, 45) new String [] {


javax.swing.GroupLayout(jFrame3.getContentPane());
.addComponent(jPanel2, "Item Code", "Item Name", "Rate", "Stock in hand"
jFrame3.getContentPane().setLayout(jFrame3Layout); javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, }
jFrame3Layout.setHorizontalGroup( javax.swing.GroupLayout.PREFERRED_SIZE)
){

jFrame3Layout.createParallelGroup(javax.swing.GroupLayout. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem Class[] types = new Class [] {


Alignment.LEADING) ent.RELATED, 29, Short.MAX_VALUE)
java.lang.Integer.class, java.lang.Integer.class,
java.lang.Integer.class, java.lang.Integer.class
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, .addGroup(jFrame3Layout.createParallelGroup(javax.swing.Gr
jFrame3Layout.createSequentialGroup() oupLayout.Alignment.BASELINE) };

.addContainerGap(130, Short.MAX_VALUE) .addComponent(jButton5)

.addComponent(jLabel11, .addComponent(jButton6) public Class getColumnClass(int columnIndex) {


javax.swing.GroupLayout.PREFERRED_SIZE, 152,
javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton48)) return types [columnIndex];

.addGap(118, 118, 118)) .addGap(26, 26, 26)) }

.addGroup(jFrame3Layout.createSequentialGroup() ); });

.addGap(18, 18, 18) jScrollPane1.setViewportView(ups);

.addComponent(jPanel2, jFrame4.setTitle("Item Data");


javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, jFrame4.setLocationByPlatform(true); jButton49.setText("Back");
javax.swing.GroupLayout.PREFERRED_SIZE)
jFrame4.setMinimumSize(new java.awt.Dimension(451, jButton49.addActionListener(new
430)); java.awt.event.ActionListener() {
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)) jFrame4.setResizable(false); public void
actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(jFrame3Layout.createSequentialGroup()
jButton49ActionPerformed(evt);
.addGap(48, 48, 48) jLabel15.setFont(new java.awt.Font("Tahoma", 1, 14)); //
NOI18N }
.addComponent(jButton5)
jLabel15.setText("Item Data"); });
.addGap(50, 50, 50)

.addComponent(jButton6)
jButton7.setText("Show Data in Table"); javax.swing.GroupLayout jFrame4Layout = new
.addGap(46, 46, 46) javax.swing.GroupLayout(jFrame4.getContentPane());
jButton7.addActionListener(new
.addComponent(jButton48) java.awt.event.ActionListener() { jFrame4.getContentPane().setLayout(jFrame4Layout);

.addContainerGap(77, Short.MAX_VALUE)) public void jFrame4Layout.setHorizontalGroup(


actionPerformed(java.awt.event.ActionEvent evt) {
);
jButton7ActionPerformed(evt); jFrame4Layout.createParallelGroup(javax.swing.GroupLayout.
jFrame3Layout.setVerticalGroup( Alignment.LEADING)
}
.addGroup(jFrame4Layout.createSequentialGroup()
jFrame3Layout.createParallelGroup(javax.swing.GroupLayout. });
Alignment.LEADING) .addGap(183, 183, 183)

.addGroup(jFrame3Layout.createSequentialGroup() .addComponent(jButton49)
ups.setModel(new javax.swing.table.DefaultTableModel(
.addGap(22, 22, 22) .addContainerGap(213, Short.MAX_VALUE))
new Object [][] {
.addComponent(jLabel11, .addGroup(jFrame4Layout.createSequentialGroup()
javax.swing.GroupLayout.PREFERRED_SIZE, 25,
javax.swing.GroupLayout.PREFERRED_SIZE)
},

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addGap(18, 18, 18) .addComponent(jLabel17,


.addGroup(jFrame4Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.PREFERRED_SIZE, 163,
oupLayout.Alignment.LEADING) .addComponent(jButton49) javax.swing.GroupLayout.PREFERRED_SIZE))

.addGroup(jFrame4Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem


Short.MAX_VALUE)) ent.UNRELATED)

.addGroup(jFrame4Layout.createParallelGroup(javax.swing.Gr );
oupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)

.addGroup(jFrame4Layout.createSequentialGroup() jFrame5.setTitle("Item Data"); .addComponent(jTextField11,


javax.swing.GroupLayout.PREFERRED_SIZE, 151,
.addGap(102, 102, 102) jFrame5.setLocationByPlatform(true); javax.swing.GroupLayout.PREFERRED_SIZE)

.addComponent(jButton7, jFrame5.setMinimumSize(new java.awt.Dimension(446, .addComponent(jTextField12,


javax.swing.GroupLayout.PREFERRED_SIZE, 247, 479)); javax.swing.GroupLayout.PREFERRED_SIZE, 151,
javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.PREFERRED_SIZE))
jFrame5.setResizable(false);
.addContainerGap(65, Short.MAX_VALUE))
.addGroup(jFrame4Layout.createSequentialGroup()
);
.addGap(174, 174, 174) jLabel16.setFont(new java.awt.Font("Tahoma", 1, 14)); //
NOI18N jPanel3Layout.setVerticalGroup(
.addComponent(jLabel15,
javax.swing.GroupLayout.PREFERRED_SIZE, 89, jLabel16.setText("Query By Rate");
javax.swing.GroupLayout.PREFERRED_SIZE))) jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.A
lignment.LEADING)
.addGap(0, 92, Short.MAX_VALUE))
.addGroup(jPanel3Layout.createSequentialGroup()
jPanel3.setBorder(javax.swing.BorderFactory.createTitledBord
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, er("Select Range of Rate :"));
jFrame4Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addContainerGap(15, Short.MAX_VALUE)
jLabel17.setText("Upper Limit :");
.addComponent(jScrollPane1, .addGroup(jPanel3Layout.createParallelGroup(javax.swing.Gr
javax.swing.GroupLayout.PREFERRED_SIZE, 426, oupLayout.Alignment.BASELINE)
javax.swing.GroupLayout.PREFERRED_SIZE)))
jLabel18.setText("Lower Limit :"); .addComponent(jLabel17)
.addContainerGap())
.addComponent(jTextField11,
); javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout.DEFAULT_SIZE,
jFrame4Layout.setVerticalGroup( javax.swing.GroupLayout(jPanel3); javax.swing.GroupLayout.PREFERRED_SIZE))

jPanel3.setLayout(jPanel3Layout);
jFrame4Layout.createParallelGroup(javax.swing.GroupLayout. .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
Alignment.LEADING) jPanel3Layout.setHorizontalGroup( ent.UNRELATED)

.addGroup(jFrame4Layout.createSequentialGroup()
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.A .addGroup(jPanel3Layout.createParallelGroup(javax.swing.Gr
.addGap(22, 22, 22) lignment.LEADING) oupLayout.Alignment.BASELINE)

.addComponent(jLabel15, .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel18)


javax.swing.GroupLayout.PREFERRED_SIZE, 34,
javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(21, 21, 21) .addComponent(jTextField12,
javax.swing.GroupLayout.PREFERRED_SIZE,
.addGap(18, 18, 18) javax.swing.GroupLayout.DEFAULT_SIZE,
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jButton7) oupLayout.Alignment.TRAILING)
);
.addGap(18, 18, 18) .addComponent(jLabel18,
javax.swing.GroupLayout.PREFERRED_SIZE, 163,
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.PREFERRED_SIZE, 234, ups1.setModel(new
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.table.DefaultTableModel(

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

new Object [][] { javax.swing.GroupLayout jFrame5Layout = new .addGroup(jFrame5Layout.createSequentialGroup()


javax.swing.GroupLayout(jFrame5.getContentPane());
.addContainerGap()
jFrame5.getContentPane().setLayout(jFrame5Layout);
}, .addComponent(jLabel16,
jFrame5Layout.setHorizontalGroup( javax.swing.GroupLayout.PREFERRED_SIZE, 24,
new String [] { javax.swing.GroupLayout.PREFERRED_SIZE)

"Item Code", "Item Name", "Rate", "Stock in hand" jFrame5Layout.createParallelGroup(javax.swing.GroupLayout. .addGap(18, 18, 18)
Alignment.LEADING)
} .addComponent(jPanel3,
.addGroup(jFrame5Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE,
){ javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
Class[] types = new Class [] { .addGroup(jFrame5Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
java.lang.Integer.class, java.lang.String.class, .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
java.lang.Integer.class, java.lang.Integer.class ent.UNRELATED)
.addGroup(jFrame5Layout.createSequentialGroup()
};
.addContainerGap() .addGroup(jFrame5Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.BASELINE)
.addComponent(jPanel3,
public Class getColumnClass(int columnIndex) { javax.swing.GroupLayout.DEFAULT_SIZE, .addComponent(jButton8)
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
return types [columnIndex]; .addComponent(jButton50))

} .addGroup(jFrame5Layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
}); .addContainerGap() ent.RELATED, 17, Short.MAX_VALUE)

jScrollPane3.setViewportView(ups1); .addComponent(jScrollPane3, .addComponent(jScrollPane3,


javax.swing.GroupLayout.PREFERRED_SIZE, 426, javax.swing.GroupLayout.PREFERRED_SIZE, 234,
javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.PREFERRED_SIZE)

jButton8.setText("Show"); .addGap(29, 29, 29))


.addGroup(jFrame5Layout.createSequentialGroup()
jButton8.addActionListener(new );
java.awt.event.ActionListener() { .addGap(141, 141, 141)

public void .addComponent(jLabel16,


actionPerformed(java.awt.event.ActionEvent evt) { javax.swing.GroupLayout.PREFERRED_SIZE, 138, jFrame6.setTitle("Item data");
javax.swing.GroupLayout.PREFERRED_SIZE))
jButton8ActionPerformed(evt); jFrame6.setLocationByPlatform(true);

} .addGroup(jFrame5Layout.createSequentialGroup() jFrame6.setMinimumSize(new java.awt.Dimension(446,


380));
}); .addGap(123, 123, 123)
jFrame6.setResizable(false);
.addComponent(jButton8,
javax.swing.GroupLayout.PREFERRED_SIZE, 70,
jButton50.setText("Back"); javax.swing.GroupLayout.PREFERRED_SIZE)
ups2.setModel(new
jButton50.addActionListener(new .addGap(59, 59, 59) javax.swing.table.DefaultTableModel(
java.awt.event.ActionListener() {
.addComponent(jButton50, new Object [][] {
public void javax.swing.GroupLayout.PREFERRED_SIZE, 68,
actionPerformed(java.awt.event.ActionEvent evt) { javax.swing.GroupLayout.PREFERRED_SIZE)))

jButton50ActionPerformed(evt); .addContainerGap()) },

} ); new String [] {

}); jFrame5Layout.setVerticalGroup( "Item Code", "Item Name", "Rate", "Stock in hand"

}
jFrame5Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING) ){

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

Class[] types = new Class [] { jFrame6Layout.setHorizontalGroup(


jFrame6Layout.createParallelGroup(javax.swing.GroupLayout.
java.lang.Integer.class, java.lang.Integer.class, Alignment.LEADING)
java.lang.Integer.class, java.lang.Integer.class jFrame6Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING) .addGroup(jFrame6Layout.createSequentialGroup()
};
.addGroup(jFrame6Layout.createSequentialGroup() .addContainerGap()

.addComponent(jLabel21,
public Class getColumnClass(int columnIndex) { .addGroup(jFrame6Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.PREFERRED_SIZE, 24,
oupLayout.Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE)
return types [columnIndex];
.addGap(29, 29, 29)
} .addGroup(jFrame6Layout.createSequentialGroup()

}); .addGap(141, 141, 141) .addGroup(jFrame6Layout.createParallelGroup(javax.swing.Gr


oupLayout.Alignment.TRAILING)
jScrollPane4.setViewportView(ups2); .addComponent(jLabel21,
javax.swing.GroupLayout.PREFERRED_SIZE, 138, .addComponent(jTextField13,
javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
jLabel21.setFont(new java.awt.Font("Tahoma", 1, 14)); // javax.swing.GroupLayout.PREFERRED_SIZE)
NOI18N .addGroup(jFrame6Layout.createSequentialGroup()
.addComponent(jLabel19))
jLabel21.setText("Query By Name"); .addGap(32, 32, 32)
.addGap(18, 18, 18)
.addComponent(jLabel19,
javax.swing.GroupLayout.PREFERRED_SIZE, 163, .addComponent(jButton9)
jButton9.setText("Show"); javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(32, 32, 32)
jButton9.addActionListener(new .addGap(45, 45, 45)
java.awt.event.ActionListener() { .addComponent(jScrollPane4,
.addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 151,
public void javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
actionPerformed(java.awt.event.ActionEvent evt) { javax.swing.GroupLayout.PREFERRED_SIZE))

jButton9ActionPerformed(evt); .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
.addGroup(jFrame6Layout.createSequentialGroup() ent.RELATED, 11, Short.MAX_VALUE)
}
.addContainerGap() .addComponent(jButton51)
});
.addComponent(jScrollPane4, .addContainerGap())
javax.swing.GroupLayout.PREFERRED_SIZE, 426,
javax.swing.GroupLayout.PREFERRED_SIZE)) );
jLabel19.setText("Enter name of Item :");

.addGroup(jFrame6Layout.createSequentialGroup()
jFrame7.setTitle("Item Data");
jButton51.setText("Back"); .addGap(174, 174, 174)
jFrame7.setLocationByPlatform(true);
jButton51.addActionListener(new .addComponent(jButton9,
java.awt.event.ActionListener() { javax.swing.GroupLayout.PREFERRED_SIZE, 70, jFrame7.setMinimumSize(new java.awt.Dimension(446,
javax.swing.GroupLayout.PREFERRED_SIZE)) 359));
public void
actionPerformed(java.awt.event.ActionEvent evt) { jFrame7.setResizable(false);
.addGroup(jFrame6Layout.createSequentialGroup()
jButton51ActionPerformed(evt);
.addGap(183, 183, 183)
} jLabel20.setText("Enter Code of Item :");
.addComponent(jButton51)))
});

.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, jButton10.setText("Show");
Short.MAX_VALUE))
javax.swing.GroupLayout jFrame6Layout = new jButton10.addActionListener(new
javax.swing.GroupLayout(jFrame6.getContentPane()); ); java.awt.event.ActionListener() {

jFrame6.getContentPane().setLayout(jFrame6Layout); jFrame6Layout.setVerticalGroup(

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

public void }); .addComponent(jTextField14,


actionPerformed(java.awt.event.ActionEvent evt) { javax.swing.GroupLayout.PREFERRED_SIZE, 151,
javax.swing.GroupLayout.PREFERRED_SIZE))
jButton10ActionPerformed(evt);
javax.swing.GroupLayout jFrame7Layout = new
} javax.swing.GroupLayout(jFrame7.getContentPane()); .addGroup(jFrame7Layout.createSequentialGroup()

}); jFrame7.getContentPane().setLayout(jFrame7Layout); .addGap(72, 72, 72)

jFrame7Layout.setHorizontalGroup( .addComponent(jButton52)))))

jLabel22.setFont(new java.awt.Font("Tahoma", 1, 14)); //


NOI18N jFrame7Layout.createParallelGroup(javax.swing.GroupLayout. .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Alignment.LEADING) Short.MAX_VALUE))
jLabel22.setText("Query By Code");
.addGap(0, 446, Short.MAX_VALUE) );

.addGroup(jFrame7Layout.createSequentialGroup() jFrame7Layout.setVerticalGroup(
ups3.setModel(new
javax.swing.table.DefaultTableModel(
.addGroup(jFrame7Layout.createParallelGroup(javax.swing.Gr jFrame7Layout.createParallelGroup(javax.swing.GroupLayout.
new Object [][] { oupLayout.Alignment.LEADING) Alignment.LEADING)

.addGroup(jFrame7Layout.createSequentialGroup()
.addGroup(jFrame7Layout.createSequentialGroup()
}, .addContainerGap()
.addGap(141, 141, 141)
new String [] { .addComponent(jLabel22,
.addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 24,
"Item Code", "Item Name", "Rate", "Stock in hand" javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.PREFERRED_SIZE))
} .addGap(29, 29, 29)

){ .addGroup(jFrame7Layout.createSequentialGroup()
.addGroup(jFrame7Layout.createParallelGroup(javax.swing.Gr
Class[] types = new Class [] { .addContainerGap() oupLayout.Alignment.TRAILING)

java.lang.Integer.class, java.lang.Integer.class, .addComponent(jScrollPane5, .addComponent(jTextField14,


java.lang.Integer.class, java.lang.Integer.class javax.swing.GroupLayout.PREFERRED_SIZE, 426, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.DEFAULT_SIZE,
}; javax.swing.GroupLayout.PREFERRED_SIZE)

.addGroup(jFrame7Layout.createSequentialGroup() .addComponent(jLabel20))

public Class getColumnClass(int columnIndex) { .addGap(32, 32, 32) .addGap(18, 18, 18)

return types [columnIndex];


.addGroup(jFrame7Layout.createParallelGroup(javax.swing.Gr .addGroup(jFrame7Layout.createParallelGroup(javax.swing.Gr
} oupLayout.Alignment.TRAILING) oupLayout.Alignment.BASELINE)

}); .addComponent(jButton10, .addComponent(jButton10)


javax.swing.GroupLayout.PREFERRED_SIZE, 70,
jScrollPane5.setViewportView(ups3); javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton52))

.addComponent(jLabel20, .addGap(32, 32, 32)


javax.swing.GroupLayout.PREFERRED_SIZE, 163,
jButton52.setText("Back"); javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPane5,
javax.swing.GroupLayout.PREFERRED_SIZE, 151,
jButton52.addActionListener(new javax.swing.GroupLayout.PREFERRED_SIZE)
java.awt.event.ActionListener() { .addGroup(jFrame7Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
public void .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
actionPerformed(java.awt.event.ActionEvent evt) { Short.MAX_VALUE))
.addGroup(jFrame7Layout.createSequentialGroup()
jButton52ActionPerformed(evt); );
.addGap(45, 45, 45)
}

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jFrame8.setTitle("Customer Data"); public void .addComponent(jTextField21,


actionPerformed(java.awt.event.ActionEvent evt) { javax.swing.GroupLayout.PREFERRED_SIZE, 135,
jFrame8.setLocationByPlatform(true); javax.swing.GroupLayout.PREFERRED_SIZE))
jButton12ActionPerformed(evt);
jFrame8.setMinimumSize(new java.awt.Dimension(400,
426)); } .addGroup(jFrame8Layout.createSequentialGroup()

jFrame8.setResizable(false); });
.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)

jLabel23.setFont(new java.awt.Font("Tahoma", 1, 14)); // jButton53.setText("Back"); .addComponent(jLabel24,


NOI18N javax.swing.GroupLayout.PREFERRED_SIZE, 146,
jButton53.addActionListener(new javax.swing.GroupLayout.PREFERRED_SIZE)
jLabel23.setText("Customer Data"); java.awt.event.ActionListener() {
.addComponent(jLabel25,
public void javax.swing.GroupLayout.PREFERRED_SIZE, 146,
actionPerformed(java.awt.event.ActionEvent evt) { javax.swing.GroupLayout.PREFERRED_SIZE)
jLabel24.setText("Customer Code :");
jButton53ActionPerformed(evt); .addComponent(jLabel26,
javax.swing.GroupLayout.PREFERRED_SIZE, 146,
} javax.swing.GroupLayout.PREFERRED_SIZE)
jLabel25.setText("Customer Name :");
}); .addComponent(jLabel29,
javax.swing.GroupLayout.PREFERRED_SIZE, 146,
javax.swing.GroupLayout.PREFERRED_SIZE)
jLabel26.setText("Address :");
javax.swing.GroupLayout jFrame8Layout = new .addComponent(jLabel28,
javax.swing.GroupLayout(jFrame8.getContentPane()); javax.swing.GroupLayout.PREFERRED_SIZE, 146,
javax.swing.GroupLayout.PREFERRED_SIZE)
jLabel27.setText("State :"); jFrame8.getContentPane().setLayout(jFrame8Layout);
.addComponent(jLabel27,
jFrame8Layout.setHorizontalGroup( javax.swing.GroupLayout.PREFERRED_SIZE, 146,
javax.swing.GroupLayout.PREFERRED_SIZE))
jLabel28.setText("Pin Number :");
jFrame8Layout.createParallelGroup(javax.swing.GroupLayout. .addGap(32, 32, 32)
Alignment.LEADING)

jLabel29.setText("City : "); .addGroup(jFrame8Layout.createSequentialGroup() .addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr


oupLayout.Alignment.LEADING, false)

.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr .addComponent(jTextField18,
jLabel30.setText("Phone Number :"); oupLayout.Alignment.LEADING) javax.swing.GroupLayout.DEFAULT_SIZE, 135,
Short.MAX_VALUE)

.addGroup(jFrame8Layout.createSequentialGroup() .addComponent(jTextField17)
jButton11.setText("Insert");
.addGap(131, 131, 131) .addComponent(jTextField16)
jButton11.addActionListener(new
java.awt.event.ActionListener() { .addComponent(jLabel23)) .addComponent(jTextField15,
javax.swing.GroupLayout.DEFAULT_SIZE, 135,
public void Short.MAX_VALUE)
actionPerformed(java.awt.event.ActionEvent evt) { .addGroup(jFrame8Layout.createSequentialGroup()
.addComponent(jTextField19)
jButton11ActionPerformed(evt); .addGap(37, 37, 37)
.addComponent(jTextField20)))))
}
.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr
}); oupLayout.Alignment.LEADING) .addGroup(jFrame8Layout.createSequentialGroup()

.addGap(58, 58, 58)


.addGroup(jFrame8Layout.createSequentialGroup()
jButton12.setText("Reset"); .addComponent(jButton11)
.addComponent(jLabel30,
jButton12.addActionListener(new javax.swing.GroupLayout.PREFERRED_SIZE, 146, .addGap(47, 47, 47)
java.awt.event.ActionListener() { javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton12)
.addGap(32, 32, 32)

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addGap(44, 44, 44) .addComponent(jTextField20,


.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.PREFERRED_SIZE,
.addComponent(jButton53))) oupLayout.Alignment.LEADING) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(50, Short.MAX_VALUE))
.addGroup(jFrame8Layout.createSequentialGroup()
); .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.RELATED, 41, Short.MAX_VALUE)
jFrame8Layout.setVerticalGroup( .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.UNRELATED)
.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr
jFrame8Layout.createParallelGroup(javax.swing.GroupLayout. .addComponent(jLabel29, oupLayout.Alignment.BASELINE)
Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton11)
.addGroup(jFrame8Layout.createSequentialGroup()
.addGap(48, 48, 48) .addComponent(jButton53)
.addContainerGap()
.addComponent(jLabel28, .addComponent(jButton12))
.addComponent(jLabel23) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(25, 25, 25))
.addGap(41, 41, 41)
);
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr ent.UNRELATED)
oupLayout.Alignment.BASELINE)
jFrame9.setTitle("Customer Data");
.addComponent(jLabel24, .addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr
javax.swing.GroupLayout.PREFERRED_SIZE, 26, oupLayout.Alignment.BASELINE) jFrame9.setLocationByPlatform(true);
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel30, jFrame9.setMinimumSize(new java.awt.Dimension(440,
.addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 26, 540));
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.DEFAULT_SIZE, jFrame9.setResizable(false);
javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jTextField21,
javax.swing.GroupLayout.PREFERRED_SIZE,
.addGap(11, 11, 11) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
jPanel4.setBorder(javax.swing.BorderFactory.createTitledBord
.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr er("Enter Data to be updated"));
oupLayout.Alignment.BASELINE) .addGroup(jFrame8Layout.createSequentialGroup()

.addComponent(jLabel25, .addGap(13, 13, 13)


javax.swing.GroupLayout.PREFERRED_SIZE, 26, jLabel36.setText("Pin Number :");
javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField18,
javax.swing.GroupLayout.PREFERRED_SIZE,
.addComponent(jTextField16, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) jLabel38.setText("Phone Number :");
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18)

jLabel35.setText("State :");
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr
ent.UNRELATED) oupLayout.Alignment.BASELINE)

.addComponent(jTextField19, jLabel34.setText("Address :");


.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.PREFERRED_SIZE,
oupLayout.Alignment.BASELINE) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel26, jLabel37.setText("City : ");
javax.swing.GroupLayout.PREFERRED_SIZE, 26, .addComponent(jLabel27,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jTextField17, jLabel33.setText("Customer Name :");
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
javax.swing.GroupLayout.PREFERRED_SIZE)) ent.UNRELATED)
javax.swing.GroupLayout jPanel4Layout = new
javax.swing.GroupLayout(jPanel4);

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jPanel4.setLayout(jPanel4Layout); .addComponent(jTextField28, .addGroup(jPanel4Layout.createSequentialGroup()


javax.swing.GroupLayout.PREFERRED_SIZE, 165,
jPanel4Layout.setHorizontalGroup( javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(13, 13, 13)

.addContainerGap(18, Short.MAX_VALUE)) .addComponent(jTextField24,


jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.A javax.swing.GroupLayout.PREFERRED_SIZE,
lignment.LEADING) ); javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel4Layout.createSequentialGroup() jPanel4Layout.setVerticalGroup(
.addGap(18, 18, 18)
.addGap(28, 28, 28)
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.A
lignment.LEADING) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.Gr
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.Gr oupLayout.Alignment.BASELINE)
oupLayout.Alignment.LEADING, false) .addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jTextField23,
.addGroup(jPanel4Layout.createSequentialGroup() .addGap(23, 23, 23) javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
.addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.PREFERRED_SIZE, 146, .addGroup(jPanel4Layout.createParallelGroup(javax.swing.Gr
javax.swing.GroupLayout.PREFERRED_SIZE) oupLayout.Alignment.BASELINE) .addComponent(jLabel35,
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
.addGap(32, 32, 32) .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE))
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
.addComponent(jTextField27)) javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
.addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jTextField28, ent.UNRELATED)
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, .addComponent(jTextField26,
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.PREFERRED_SIZE,
oupLayout.Alignment.LEADING) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jLabel33, .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
javax.swing.GroupLayout.PREFERRED_SIZE, 146, ent.UNRELATED)
javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.UNRELATED)
.addComponent(jLabel34, .addGroup(jPanel4Layout.createParallelGroup(javax.swing.Gr
javax.swing.GroupLayout.PREFERRED_SIZE, 146, oupLayout.Alignment.BASELINE)
javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.Gr
.addComponent(jLabel34, oupLayout.Alignment.BASELINE)
.addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel38,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
.addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.DEFAULT_SIZE, .addComponent(jTextField27,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
.addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE))
javax.swing.GroupLayout.PREFERRED_SIZE, 146, .addGroup(jPanel4Layout.createParallelGroup(javax.swing.Gr
javax.swing.GroupLayout.PREFERRED_SIZE)) oupLayout.Alignment.LEADING) .addContainerGap(40, Short.MAX_VALUE))

.addGap(32, 32, 32) .addGroup(jPanel4Layout.createSequentialGroup() );

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.Gr .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
oupLayout.Alignment.LEADING, false) ent.UNRELATED) jLabel31.setFont(new java.awt.Font("Tahoma", 1, 14)); //
NOI18N
.addComponent(jTextField24, .addComponent(jLabel37,
javax.swing.GroupLayout.DEFAULT_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE, 26, jLabel31.setText("Update Customer Data");
Short.MAX_VALUE) javax.swing.GroupLayout.PREFERRED_SIZE)

.addComponent(jTextField25) .addGap(48, 48, 48)


jLabel32.setText("Give Customer Code whose data you
.addComponent(jTextField23) .addComponent(jLabel36, want to update :");
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
.addComponent(jTextField26) javax.swing.GroupLayout.PREFERRED_SIZE))

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jButton13.setText("Update"); .addGap(90, 90, 90)) .addComponent(jLabel32,


javax.swing.GroupLayout.PREFERRED_SIZE, 23,
jButton13.addActionListener(new .addGroup(jFrame9Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE)
java.awt.event.ActionListener() {
.addGap(39, 39, 39) .addComponent(jTextField22,
public void javax.swing.GroupLayout.PREFERRED_SIZE,
actionPerformed(java.awt.event.ActionEvent evt) { .addComponent(jLabel32) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
jButton13ActionPerformed(evt);
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGap(45, 45, 45)
} ent.UNRELATED)
.addComponent(jPanel4,
}); .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, 116, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE) javax.swing.GroupLayout.PREFERRED_SIZE)

jButton14.setText("Reset"); .addContainerGap()) .addGap(18, 18, 18)

jButton14.addActionListener(new .addGroup(jFrame9Layout.createSequentialGroup()
java.awt.event.ActionListener() { .addGroup(jFrame9Layout.createParallelGroup(javax.swing.Gr
.addGap(25, 25, 25) oupLayout.Alignment.BASELINE)
public void
actionPerformed(java.awt.event.ActionEvent evt) { .addComponent(jPanel4, .addComponent(jButton13)
javax.swing.GroupLayout.DEFAULT_SIZE,
jButton14ActionPerformed(evt); javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton14)

} .addContainerGap()) .addComponent(jButton54))

}); .addGroup(jFrame9Layout.createSequentialGroup() .addContainerGap(38, Short.MAX_VALUE))

.addGap(96, 96, 96) );

jButton54.setText("Back"); .addComponent(jButton13)

jButton54.addActionListener(new .addGap(38, 38, 38) jFrame10.setTitle("Customer Data");


java.awt.event.ActionListener() {
.addComponent(jButton14) jFrame10.setLocationByPlatform(true);
public void
actionPerformed(java.awt.event.ActionEvent evt) { .addGap(38, 38, 38) jFrame10.setMinimumSize(new java.awt.Dimension(489,
200));
jButton54ActionPerformed(evt); .addComponent(jButton54)
jFrame10.setResizable(false);
} .addContainerGap(85, Short.MAX_VALUE))

}); );
jLabel39.setFont(new java.awt.Font("Tahoma", 1, 14)); //
jFrame9Layout.setVerticalGroup( NOI18N

javax.swing.GroupLayout jFrame9Layout = new jLabel39.setText("Delete Customer Data");


javax.swing.GroupLayout(jFrame9.getContentPane()); jFrame9Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING)
jFrame9.getContentPane().setLayout(jFrame9Layout);
.addGroup(jFrame9Layout.createSequentialGroup() jLabel40.setText("Enter Customer Code Whose Data You
jFrame9Layout.setHorizontalGroup( Want To Delete :");
.addContainerGap()

jFrame9Layout.createParallelGroup(javax.swing.GroupLayout. .addComponent(jLabel31,
Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE, 26, jButton15.setText("Delete Data");
javax.swing.GroupLayout.PREFERRED_SIZE)
jButton15.addActionListener(new
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, .addGap(32, 32, 32) java.awt.event.ActionListener() {
jFrame9Layout.createSequentialGroup()
public void
.addContainerGap(149, Short.MAX_VALUE) .addGroup(jFrame9Layout.createParallelGroup(javax.swing.Gr actionPerformed(java.awt.event.ActionEvent evt) {
oupLayout.Alignment.BASELINE)
.addComponent(jLabel31, jButton15ActionPerformed(evt);
javax.swing.GroupLayout.PREFERRED_SIZE, 201,
javax.swing.GroupLayout.PREFERRED_SIZE) }

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

}); .addContainerGap() .addComponent(jLabel40,


javax.swing.GroupLayout.PREFERRED_SIZE, 24,
.addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.DEFAULT_SIZE, 306,
jButton16.setText("Reset"); Short.MAX_VALUE))) .addComponent(jTextField29,
javax.swing.GroupLayout.PREFERRED_SIZE,
jButton16.addActionListener(new javax.swing.GroupLayout.DEFAULT_SIZE,
java.awt.event.ActionListener() { .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem javax.swing.GroupLayout.PREFERRED_SIZE))
ent.UNRELATED)
public void .addGap(32, 32, 32)
actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(jFrame10Layout.createParallelGroup(javax.swing.G
jButton16ActionPerformed(evt); roupLayout.Alignment.LEADING) .addGroup(jFrame10Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.BASELINE)
}
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, .addComponent(jButton15)
}); jFrame10Layout.createSequentialGroup()
.addComponent(jButton16)
.addComponent(jButton17,
javax.swing.GroupLayout.PREFERRED_SIZE, 79, .addComponent(jButton17))
jButton17.setText("Back"); javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(33, Short.MAX_VALUE))
jButton17.addActionListener(new .addGap(52, 52, 52))
java.awt.event.ActionListener() { );

public void .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,


actionPerformed(java.awt.event.ActionEvent evt) { jFrame10Layout.createSequentialGroup()
jFrame11.setTitle("Customer Data");
jButton17ActionPerformed(evt); .addComponent(jTextField29,
javax.swing.GroupLayout.PREFERRED_SIZE, 133, jFrame11.setLocationByPlatform(true);
} javax.swing.GroupLayout.PREFERRED_SIZE)
jFrame11.setMinimumSize(new java.awt.Dimension(594,
}); .addContainerGap()))) 519));

jFrame11.setResizable(false);
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout jFrame10Layout = new jFrame10Layout.createSequentialGroup()
javax.swing.GroupLayout(jFrame10.getContentPane());
.addContainerGap(162, Short.MAX_VALUE) jLabel41.setFont(new java.awt.Font("Tahoma", 1, 14)); //
jFrame10.getContentPane().setLayout(jFrame10Layout); NOI18N
.addComponent(jLabel39,
jFrame10Layout.setHorizontalGroup( javax.swing.GroupLayout.PREFERRED_SIZE, 203, jLabel41.setText("Customer Data");
javax.swing.GroupLayout.PREFERRED_SIZE)

jFrame10Layout.createParallelGroup(javax.swing.GroupLayout .addGap(104, 104, 104))


.Alignment.LEADING) jButton18.setText("Show Customer Data In Table");
);
.addGroup(jFrame10Layout.createSequentialGroup() jButton18.addActionListener(new
jFrame10Layout.setVerticalGroup( java.awt.event.ActionListener() {

.addGroup(jFrame10Layout.createParallelGroup(javax.swing.G public void


roupLayout.Alignment.LEADING) jFrame10Layout.createParallelGroup(javax.swing.GroupLayout actionPerformed(java.awt.event.ActionEvent evt) {
.Alignment.LEADING)
jButton18ActionPerformed(evt);
.addGroup(jFrame10Layout.createSequentialGroup() .addGroup(jFrame10Layout.createSequentialGroup()
}
.addGap(54, 54, 54) .addContainerGap()
});
.addComponent(jButton15) .addComponent(jLabel39,
javax.swing.GroupLayout.PREFERRED_SIZE, 30,
.addGap(59, 59, 59) javax.swing.GroupLayout.PREFERRED_SIZE)
jTable1.setModel(new
.addComponent(jButton16, .addGap(27, 27, 27) javax.swing.table.DefaultTableModel(
javax.swing.GroupLayout.PREFERRED_SIZE, 79,
javax.swing.GroupLayout.PREFERRED_SIZE)) new Object [][] {
.addGroup(jFrame10Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.BASELINE)
.addGroup(jFrame10Layout.createSequentialGroup()

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

}, .addGap(242, 242, 242)) .addComponent(jScrollPane2,


javax.swing.GroupLayout.PREFERRED_SIZE, 246,
new String [] { .addGroup(jFrame11Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE)

"Code", "Name", "Address", "City", "State", .addGap(18, 18, 18)


"Pin_No.", "Phone_No." .addGroup(jFrame11Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.TRAILING) .addComponent(jButton19)
}

){ .addGroup(javax.swing.GroupLayout.Alignment.LEADING, .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
jFrame11Layout.createSequentialGroup() Short.MAX_VALUE))
Class[] types = new Class [] {
.addContainerGap() );
java.lang.Integer.class, java.lang.String.class,
java.lang.String.class, java.lang.Object.class, .addComponent(jScrollPane2,
java.lang.Object.class, java.lang.Integer.class, javax.swing.GroupLayout.DEFAULT_SIZE, 565,
java.lang.Object.class Short.MAX_VALUE)) jFrame12.setTitle("Customer Data");

}; jFrame12.setLocationByPlatform(true);
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
jFrame11Layout.createSequentialGroup() jFrame12.setMinimumSize(new java.awt.Dimension(585,
486));
public Class getColumnClass(int columnIndex) { .addGap(26, 26, 26)
jFrame12.setResizable(false);
return types [columnIndex]; .addComponent(jButton18,
javax.swing.GroupLayout.PREFERRED_SIZE, 549,
} javax.swing.GroupLayout.PREFERRED_SIZE)))
jLabel42.setFont(new java.awt.Font("Tahoma", 1, 14)); //
}); NOI18N
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
jScrollPane2.setViewportView(jTable1); Short.MAX_VALUE)) jLabel42.setText("Customer Data :Query By City");

.addGroup(jFrame11Layout.createSequentialGroup()

jButton19.setText("Back"); .addGap(212, 212, 212) jButton20.setText("Show Customer Data In Table");

jButton19.addActionListener(new .addComponent(jButton19, jButton20.addActionListener(new


java.awt.event.ActionListener() { javax.swing.GroupLayout.PREFERRED_SIZE, 168, java.awt.event.ActionListener() {
javax.swing.GroupLayout.PREFERRED_SIZE)
public void public void
actionPerformed(java.awt.event.ActionEvent evt) { .addContainerGap(205, Short.MAX_VALUE)) actionPerformed(java.awt.event.ActionEvent evt) {

jButton19ActionPerformed(evt); ); jButton20ActionPerformed(evt);

} jFrame11Layout.setVerticalGroup( }

}); });
jFrame11Layout.createParallelGroup(javax.swing.GroupLayout
.Alignment.LEADING)

javax.swing.GroupLayout jFrame11Layout = new .addGroup(jFrame11Layout.createSequentialGroup() jTable2.setModel(new


javax.swing.GroupLayout(jFrame11.getContentPane()); javax.swing.table.DefaultTableModel(
.addContainerGap()
jFrame11.getContentPane().setLayout(jFrame11Layout); new Object [][] {
.addComponent(jLabel41,
jFrame11Layout.setHorizontalGroup( javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
},
jFrame11Layout.createParallelGroup(javax.swing.GroupLayout .addGap(35, 35, 35)
.Alignment.LEADING) new String [] {
.addComponent(jButton18,
javax.swing.GroupLayout.PREFERRED_SIZE, 32, "Code", "Name", "Address", "City", "Pin_No.",
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE) "Phone_No."
jFrame11Layout.createSequentialGroup()
.addGap(18, 18, 18) }
.addContainerGap(239, Short.MAX_VALUE)
){
.addComponent(jLabel41)

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

Class[] types = new Class [] { .addComponent(jButton21, .addComponent(jLabel42,


javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
java.lang.Integer.class, java.lang.String.class, javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE)
java.lang.String.class, java.lang.Object.class,
java.lang.Integer.class, java.lang.Object.class .addGap(181, 181, 181)) .addGap(40, 40, 40)

};
.addGroup(jFrame12Layout.createSequentialGroup() .addGroup(jFrame12Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.BASELINE)
.addGap(20, 20, 20)
public Class getColumnClass(int columnIndex) { .addComponent(jLabel43,
.addComponent(jButton20, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
return types [columnIndex]; javax.swing.GroupLayout.PREFERRED_SIZE, 549, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.PREFERRED_SIZE))
} .addComponent(jTextField30,
javax.swing.GroupLayout.PREFERRED_SIZE,
}); .addGroup(jFrame12Layout.createSequentialGroup() javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
jScrollPane6.setViewportView(jTable2); .addContainerGap()
.addGap(29, 29, 29)
.addComponent(jScrollPane6,
javax.swing.GroupLayout.DEFAULT_SIZE, 565, .addComponent(jButton20,
jButton21.setText("Back"); Short.MAX_VALUE))) javax.swing.GroupLayout.PREFERRED_SIZE, 32,
javax.swing.GroupLayout.PREFERRED_SIZE)
jButton21.addActionListener(new .addContainerGap())
java.awt.event.ActionListener() { .addGap(18, 18, 18)

public void .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, .addComponent(jScrollPane6,


actionPerformed(java.awt.event.ActionEvent evt) { jFrame12Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE, 203,
javax.swing.GroupLayout.PREFERRED_SIZE)
jButton21ActionPerformed(evt); .addContainerGap(188, Short.MAX_VALUE)
.addGap(37, 37, 37)
} .addComponent(jLabel42,
javax.swing.GroupLayout.PREFERRED_SIZE, 222, .addComponent(jButton21)
}); javax.swing.GroupLayout.PREFERRED_SIZE)

.addGap(175, 175, 175)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,


Short.MAX_VALUE))
jLabel43.setFont(new java.awt.Font("Tahoma", 1, 12)); // .addGroup(jFrame12Layout.createSequentialGroup()
NOI18N );
.addGap(33, 33, 33)
jLabel43.setText("Enter Name Of City :");
.addComponent(jLabel43,
javax.swing.GroupLayout.PREFERRED_SIZE, 222, jFrame13.setTitle("Bill");
javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout jFrame12Layout = new jFrame13.setCursor(new
javax.swing.GroupLayout(jFrame12.getContentPane()); .addGap(55, 55, 55) java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

jFrame12.getContentPane().setLayout(jFrame12Layout); .addComponent(jTextField30, jFrame13.setFocusCycleRoot(false);


javax.swing.GroupLayout.PREFERRED_SIZE, 244,
jFrame12Layout.setHorizontalGroup( javax.swing.GroupLayout.PREFERRED_SIZE) jFrame13.setLocationByPlatform(true);

.addContainerGap(31, Short.MAX_VALUE)) jFrame13.setMinimumSize(new java.awt.Dimension(453,


jFrame12Layout.createParallelGroup(javax.swing.GroupLayout 653));
.Alignment.LEADING) );
jFrame13.setResizable(false);
.addGroup(jFrame12Layout.createSequentialGroup() jFrame12Layout.setVerticalGroup(

.addGroup(jFrame12Layout.createParallelGroup(javax.swing.G jFrame12Layout.createParallelGroup(javax.swing.GroupLayout jLabel44.setFont(new java.awt.Font("Tahoma", 1, 18)); //


roupLayout.Alignment.LEADING) .Alignment.LEADING) NOI18N

.addGroup(jFrame12Layout.createSequentialGroup() jLabel44.setText("Bill");
.addGroup(jFrame12Layout.createSequentialGroup()
.addContainerGap()
.addGap(216, 216, 216)
jLabel45.setText("Bill Number :");

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

});

jTextField31.addActionListener(new jButton22.setText("Create Bill");


java.awt.event.ActionListener() {
jComboBox2.setEditable(true); jButton22.addActionListener(new
public void java.awt.event.ActionListener() {
actionPerformed(java.awt.event.ActionEvent evt) { jComboBox2.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "1", "2", public void
jTextField31ActionPerformed(evt); "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" })); actionPerformed(java.awt.event.ActionEvent evt) {

} jComboBox2.setToolTipText("Month"); jButton22ActionPerformed(evt);

}); }

jComboBox3.setEditable(true); });

jLabel46.setText("Buyer : "); jComboBox3.setModel(new


javax.swing.DefaultComboBoxModel(new String[] { "1990",
"1991", "1992", "1993", "1994", "1995", "1996", "1997", jButton23.setText("Buy item");
"1998", "1999", "2000", "2001", "2002", "2003", "2004",
buttonGroup1.add(jRadioButton1); "2005", "2006", "2007", "2008", "2009", "2010", "2011", jButton23.addActionListener(new
"2012" })); java.awt.event.ActionListener() {
jRadioButton1.setText("Customer");
jComboBox3.setToolTipText("Year"); public void
jRadioButton1.addActionListener(new actionPerformed(java.awt.event.ActionEvent evt) {
java.awt.event.ActionListener() {
jComboBox3.setDebugGraphicsOptions(javax.swing.DebugGra jButton23ActionPerformed(evt);
public void phics.NONE_OPTION);
actionPerformed(java.awt.event.ActionEvent evt) { }

jRadioButton1ActionPerformed(evt); });
jLabel48.setText("Item Name :");
}

});
jTextField32.addActionListener(new jPanel5.setBorder(javax.swing.BorderFactory.createTitledBord
java.awt.event.ActionListener() { er("Bill :"));

jLabel47.setText("Select Date Of Bill :"); public void


actionPerformed(java.awt.event.ActionEvent evt) {
jLabel51.setText("Amount :");
jTextField32ActionPerformed(evt);
buttonGroup1.add(jRadioButton2);
}
jRadioButton2.setText("Supplier"); jTextField33.setRequestFocusEnabled(false);
});

jComboBox1.setEditable(true); jLabel52.setText("Discount :");


jLabel49.setText("Item Code :");
jComboBox1.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "1", "2",
"3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", jTextField36.setRequestFocusEnabled(false);
"15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", jLabel50.setText("Quantity :");
"26", "27", "28", "29", "30", "31" }));

jComboBox1.setToolTipText("Date"); jLabel53.setText("Net Amount :");


jTextField34.addActionListener(new
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
java.awt.event.ActionListener() {
public void jTextField37.setRequestFocusEnabled(false);
public void actionPerformed(java.awt.event.ActionEvent evt) {
actionPerformed(java.awt.event.ActionEvent evt) {
jTextField34ActionPerformed(evt);
jComboBox1ActionPerformed(evt); javax.swing.GroupLayout jPanel5Layout = new
} javax.swing.GroupLayout(jPanel5);
}
}); jPanel5.setLayout(jPanel5Layout);

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jPanel5Layout.setHorizontalGroup( .addGap(19, 19, 19) jButton25.addActionListener(new


java.awt.event.ActionListener() {

jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.A .addGroup(jPanel5Layout.createParallelGroup(javax.swing.Gr public void


lignment.LEADING) oupLayout.Alignment.BASELINE) actionPerformed(java.awt.event.ActionEvent evt) {

.addGroup(jPanel5Layout.createSequentialGroup() .addComponent(jLabel51, jButton25ActionPerformed(evt);


javax.swing.GroupLayout.PREFERRED_SIZE, 22,
.addGap(28, 28, 28) javax.swing.GroupLayout.PREFERRED_SIZE) }

.addComponent(jTextField33, });
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.PREFERRED_SIZE,
oupLayout.Alignment.LEADING) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel5Layout.createSequentialGroup() jLabel54.setText("Buyer's Name :");
.addGap(18, 18, 18)
.addComponent(jLabel53,
javax.swing.GroupLayout.PREFERRED_SIZE, 138,
javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel5Layout.createParallelGroup(javax.swing.Gr jTextField38.addActionListener(new
oupLayout.Alignment.BASELINE) java.awt.event.ActionListener() {
.addGap(28, 28, 28)
.addComponent(jLabel52, public void
.addComponent(jTextField37, javax.swing.GroupLayout.PREFERRED_SIZE, 22, actionPerformed(java.awt.event.ActionEvent evt) {
javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.PREFERRED_SIZE)) jTextField38ActionPerformed(evt);
.addComponent(jTextField36,
javax.swing.GroupLayout.PREFERRED_SIZE, }
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout.DEFAULT_SIZE,
oupLayout.Alignment.TRAILING) javax.swing.GroupLayout.PREFERRED_SIZE)) });

.addGap(18, 18, 18)


.addGroup(jPanel5Layout.createSequentialGroup()
javax.swing.GroupLayout jFrame13Layout = new
.addComponent(jLabel52, .addGroup(jPanel5Layout.createParallelGroup(javax.swing.Gr javax.swing.GroupLayout(jFrame13.getContentPane());
javax.swing.GroupLayout.PREFERRED_SIZE, 138, oupLayout.Alignment.BASELINE)
javax.swing.GroupLayout.PREFERRED_SIZE) jFrame13.getContentPane().setLayout(jFrame13Layout);
.addComponent(jLabel53,
.addGap(28, 28, 28) javax.swing.GroupLayout.PREFERRED_SIZE, 22, jFrame13Layout.setHorizontalGroup(
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField36,
javax.swing.GroupLayout.PREFERRED_SIZE, 151, .addComponent(jTextField37, jFrame13Layout.createParallelGroup(javax.swing.GroupLayout
javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.PREFERRED_SIZE, .Alignment.LEADING)
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jFrame13Layout.createSequentialGroup()
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap(35, Short.MAX_VALUE)) .addGap(194, 194, 194)
.addComponent(jLabel51,
javax.swing.GroupLayout.PREFERRED_SIZE, 138, ); .addComponent(jLabel44))
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jFrame13Layout.createSequentialGroup()
.addGap(28, 28, 28)
jButton24.setText("Print Bill"); .addGap(18, 18, 18)
.addComponent(jTextField33,
javax.swing.GroupLayout.PREFERRED_SIZE, 151, jButton24.addActionListener(new
javax.swing.GroupLayout.PREFERRED_SIZE)))) java.awt.event.ActionListener() { .addGroup(jFrame13Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.LEADING)
.addContainerGap(56, Short.MAX_VALUE)) public void
actionPerformed(java.awt.event.ActionEvent evt) { .addComponent(jPanel5,
); javax.swing.GroupLayout.PREFERRED_SIZE,
jButton24ActionPerformed(evt); javax.swing.GroupLayout.DEFAULT_SIZE,
jPanel5Layout.setVerticalGroup( javax.swing.GroupLayout.PREFERRED_SIZE)
}

jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.A }); .addGroup(jFrame13Layout.createSequentialGroup()


lignment.LEADING)

.addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jFrame13Layout.createParallelGroup(javax.swing.G
jButton25.setText("Back"); roupLayout.Alignment.LEADING)

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addComponent(jTextField34) );
.addGroup(jFrame13Layout.createSequentialGroup()
.addComponent(jTextField32, jFrame13Layout.setVerticalGroup(
.addGap(8, 8, 8) javax.swing.GroupLayout.PREFERRED_SIZE, 207,
javax.swing.GroupLayout.PREFERRED_SIZE))
jFrame13Layout.createParallelGroup(javax.swing.GroupLayout
.addGroup(jFrame13Layout.createParallelGroup(javax.swing.G .addContainerGap(49, .Alignment.LEADING)
roupLayout.Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(jFrame13Layout.createSequentialGroup()
.addComponent(jLabel47)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, .addContainerGap()
.addComponent(jLabel48, jFrame13Layout.createSequentialGroup()
javax.swing.GroupLayout.PREFERRED_SIZE, 114, .addComponent(jLabel44,
javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(186, Short.MAX_VALUE) javax.swing.GroupLayout.PREFERRED_SIZE, 27,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel49, .addComponent(jButton24,
javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE, 89, .addGap(27, 27, 27)
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE)

.addComponent(jLabel50, .addGap(178, 178, 178)) .addGroup(jFrame13Layout.createParallelGroup(javax.swing.G


javax.swing.GroupLayout.PREFERRED_SIZE, 81, roupLayout.Alignment.BASELINE)
javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jFrame13Layout.createSequentialGroup()
.addComponent(jLabel45)
.addGap(27, 27, 27)
.addGroup(jFrame13Layout.createSequentialGroup() .addComponent(jTextField31,
javax.swing.GroupLayout.PREFERRED_SIZE,
.addGap(54, 54, 54) .addGroup(jFrame13Layout.createParallelGroup(javax.swing.G javax.swing.GroupLayout.DEFAULT_SIZE,
roupLayout.Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jButton22)))
.addComponent(jLabel54, .addGap(18, 18, 18)
.addGap(44, 44, 44) javax.swing.GroupLayout.PREFERRED_SIZE, 143,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jFrame13Layout.createParallelGroup(javax.swing.G
.addGroup(jFrame13Layout.createParallelGroup(javax.swing.G .addComponent(jLabel45, roupLayout.Alignment.BASELINE)
roupLayout.Alignment.LEADING, false) javax.swing.GroupLayout.PREFERRED_SIZE, 143,
javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel46)

.addGroup(jFrame13Layout.createSequentialGroup() .addComponent(jLabel46, .addComponent(jRadioButton1)


javax.swing.GroupLayout.PREFERRED_SIZE, 143,
.addComponent(jButton23) javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jRadioButton2))

.addGap(40, 40, 40) .addGap(27, 27, 27) .addGap(18, 18, 18)

.addComponent(jButton25,
javax.swing.GroupLayout.PREFERRED_SIZE, 71, .addGroup(jFrame13Layout.createParallelGroup(javax.swing.G .addGroup(jFrame13Layout.createParallelGroup(javax.swing.G
javax.swing.GroupLayout.PREFERRED_SIZE)) roupLayout.Alignment.LEADING) roupLayout.Alignment.BASELINE)

.addComponent(jLabel54)
.addGroup(jFrame13Layout.createSequentialGroup() .addGroup(jFrame13Layout.createSequentialGroup()
.addComponent(jTextField38,
.addComponent(jComboBox1, .addComponent(jRadioButton1) javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.RELATED, 73, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.UNRELATED) .addComponent(jRadioButton2)) ent.RELATED, 23, Short.MAX_VALUE)

.addComponent(jComboBox2, .addComponent(jTextField31,
javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.DEFAULT_SIZE, 207, .addGroup(jFrame13Layout.createParallelGroup(javax.swing.G
javax.swing.GroupLayout.PREFERRED_SIZE) Short.MAX_VALUE) roupLayout.Alignment.BASELINE)

.addGap(18, 18, 18) .addComponent(jTextField38, .addComponent(jLabel47)


javax.swing.GroupLayout.Alignment.TRAILING,
.addComponent(jComboBox3, 0, 1, javax.swing.GroupLayout.DEFAULT_SIZE, 207, .addComponent(jComboBox1,
Short.MAX_VALUE)) Short.MAX_VALUE)) javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
.addComponent(jTextField35) .addGap(49, 49, 49)) javax.swing.GroupLayout.PREFERRED_SIZE)

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addComponent(jComboBox2, .addComponent(jPanel5, });


javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE)
jTable3.setModel(new
.addComponent(jComboBox3, .addGap(17, 17, 17) javax.swing.table.DefaultTableModel(
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, .addComponent(jButton24) new Object [][] {
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
.addGap(18, 18, 18)
); },

.addGroup(jFrame13Layout.createParallelGroup(javax.swing.G new String [] {


roupLayout.Alignment.BASELINE)
"Billno", "Customer_type", "Name", "Date of
.addComponent(jTextField32, jComboBox1.getAccessibleContext().setAccessibleName("date purchase", "Item_Name", "Quantity", "Amount", "Discount",
javax.swing.GroupLayout.PREFERRED_SIZE, "); "Netamount"
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE) }
jComboBox2.getAccessibleContext().setAccessibleName("Mon
.addComponent(jLabel49, th"); ){
javax.swing.GroupLayout.PREFERRED_SIZE, 23,
javax.swing.GroupLayout.PREFERRED_SIZE)) Class[] types = new Class [] {
jComboBox3.getAccessibleContext().setAccessibleName("Year
"); java.lang.Integer.class, java.lang.String.class,
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem java.lang.String.class, java.lang.Object.class,
ent.RELATED) java.lang.String.class, java.lang.Integer.class,
java.lang.Integer.class, java.lang.Integer.class,
jTextArea1.setColumns(20); java.lang.Integer.class
.addGroup(jFrame13Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.BASELINE) jTextArea1.setRows(5); };

.addComponent(jLabel48, jTextArea1.setBorder(new
javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.border.MatteBorder(null));
javax.swing.GroupLayout.PREFERRED_SIZE) public Class getColumnClass(int columnIndex) {
jScrollPane7.setViewportView(jTextArea1);
.addComponent(jTextField34, return types [columnIndex];
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, }
javax.swing.GroupLayout.PREFERRED_SIZE)) jFrame14.setTitle("Bill History");
});
.addGap(18, 18, 18) jFrame14.setMinimumSize(new java.awt.Dimension(676,
440)); jScrollPane8.setViewportView(jTable3);

.addGroup(jFrame13Layout.createParallelGroup(javax.swing.G jFrame14.setResizable(false);
roupLayout.Alignment.BASELINE)
jButton27.setText("Back");
.addComponent(jLabel50)
jLabel55.setFont(new java.awt.Font("Tahoma", 1, 14)); // jButton27.addActionListener(new
.addComponent(jTextField35, NOI18N java.awt.event.ActionListener() {
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, jLabel55.setText("Bill History"); public void
javax.swing.GroupLayout.PREFERRED_SIZE)) actionPerformed(java.awt.event.ActionEvent evt) {

.addGap(35, 35, 35) jButton27ActionPerformed(evt);


jButton26.setText("Show Bill History");
}
.addGroup(jFrame13Layout.createParallelGroup(javax.swing.G jButton26.addActionListener(new
roupLayout.Alignment.BASELINE) java.awt.event.ActionListener() { });

.addComponent(jButton22) public void


actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(jButton23) javax.swing.GroupLayout jFrame14Layout = new
jButton26ActionPerformed(evt); javax.swing.GroupLayout(jFrame14.getContentPane());
.addComponent(jButton25))
} jFrame14.getContentPane().setLayout(jFrame14Layout);
.addGap(18, 18, 18)

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jFrame14Layout.setHorizontalGroup( .addComponent(jButton27)) };

jFrame14Layout.createParallelGroup(javax.swing.GroupLayout .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
.Alignment.LEADING) ent.UNRELATED) public Class getColumnClass(int columnIndex) {

.addComponent(jScrollPane8, return types [columnIndex];


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 265,
jFrame14Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE) }

.addContainerGap() });
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)) jTable4.getTableHeader().setReorderingAllowed(false);
.addGroup(jFrame14Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.TRAILING) ); jScrollPane9.setViewportView(jTable4);

.addComponent(jScrollPane8,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 656, jFrame15.setTitle("Bill History"); jButton28.setText("Show Bill History");
Short.MAX_VALUE)
jFrame15.setMinimumSize(new java.awt.Dimension(708, jButton28.addActionListener(new
390)); java.awt.event.ActionListener() {
.addGroup(jFrame14Layout.createSequentialGroup()
jFrame15.setResizable(false); public void
actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(jFrame14Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.TRAILING) jButton28ActionPerformed(evt);
jLabel56.setFont(new java.awt.Font("Tahoma", 1, 14)); //
.addComponent(jLabel55) NOI18N }

.addComponent(jButton26, jLabel56.setText("Bill History"); });


javax.swing.GroupLayout.PREFERRED_SIZE, 386,
javax.swing.GroupLayout.PREFERRED_SIZE))

jLabel57.setFont(new java.awt.Font("Tahoma", 1, 12)); // jButton29.setText("Back");


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem NOI18N
ent.RELATED, 144, Short.MAX_VALUE) jButton29.addActionListener(new
jLabel57.setText("Enter Bill Code :"); java.awt.event.ActionListener() {
.addComponent(jButton27,
javax.swing.GroupLayout.PREFERRED_SIZE, 126, public void
javax.swing.GroupLayout.PREFERRED_SIZE))) actionPerformed(java.awt.event.ActionEvent evt) {
jTable4.setModel(new
.addContainerGap()) javax.swing.table.DefaultTableModel( jButton29ActionPerformed(evt);

); new Object [][] { }

jFrame14Layout.setVerticalGroup( });

},
jFrame14Layout.createParallelGroup(javax.swing.GroupLayout
.Alignment.LEADING) new String [] { javax.swing.GroupLayout jFrame15Layout = new
javax.swing.GroupLayout(jFrame15.getContentPane());
.addGroup(jFrame14Layout.createSequentialGroup() "Billno", "Customer_type", "Name", "Date of
purchase", "Item_Name", "Quantity", "Amount", "Discount", jFrame15.getContentPane().setLayout(jFrame15Layout);
.addContainerGap() "Netamount"
jFrame15Layout.setHorizontalGroup(
.addComponent(jLabel55, }
javax.swing.GroupLayout.PREFERRED_SIZE, 29,
javax.swing.GroupLayout.PREFERRED_SIZE) ){ jFrame15Layout.createParallelGroup(javax.swing.GroupLayout
.Alignment.LEADING)
.addGap(30, 30, 30) Class[] types = new Class [] {
.addGroup(jFrame15Layout.createSequentialGroup()
java.lang.Integer.class, java.lang.String.class,
.addGroup(jFrame14Layout.createParallelGroup(javax.swing.G java.lang.String.class, java.lang.Object.class, .addGap(33, 33, 33)
roupLayout.Alignment.BASELINE) java.lang.String.class, java.lang.Integer.class,
java.lang.Integer.class, java.lang.Integer.class, .addComponent(jLabel57,
.addComponent(jButton26) java.lang.Integer.class javax.swing.GroupLayout.PREFERRED_SIZE, 222,
javax.swing.GroupLayout.PREFERRED_SIZE)

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addGap(120, 120, 120) .addGap(40, 40, 40) jButton31.addActionListener(new


java.awt.event.ActionListener() {
.addComponent(jTextField39,
javax.swing.GroupLayout.PREFERRED_SIZE, 315, .addGroup(jFrame15Layout.createParallelGroup(javax.swing.G public void
javax.swing.GroupLayout.PREFERRED_SIZE) roupLayout.Alignment.LEADING) actionPerformed(java.awt.event.ActionEvent evt) {

.addContainerGap(18, Short.MAX_VALUE)) .addComponent(jLabel57, jButton31ActionPerformed(evt);


javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) }
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jFrame15Layout.createSequentialGroup() .addComponent(jTextField39, });
javax.swing.GroupLayout.PREFERRED_SIZE,
.addContainerGap(291, Short.MAX_VALUE) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel56, jTable5.setModel(new
javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.table.DefaultTableModel(
javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.UNRELATED) new Object [][] {
.addGap(195, 195, 195))

.addGroup(jFrame15Layout.createParallelGroup(javax.swing.G
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, roupLayout.Alignment.BASELINE) },
jFrame15Layout.createSequentialGroup()
.addComponent(jButton28) new String [] {
.addContainerGap()
.addComponent(jButton29)) "Billno", "Customer_type", "Name", "Date of
purchase", "Item_Name", "Quantity", "Amount", "Discount",
.addGroup(jFrame15Layout.createParallelGroup(javax.swing.G "Netamount"
roupLayout.Alignment.TRAILING) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.UNRELATED) }
.addComponent(jScrollPane9,
javax.swing.GroupLayout.Alignment.LEADING, .addComponent(jScrollPane9, ){
javax.swing.GroupLayout.DEFAULT_SIZE, 688, javax.swing.GroupLayout.PREFERRED_SIZE, 176,
Short.MAX_VALUE) javax.swing.GroupLayout.PREFERRED_SIZE) Class[] types = new Class [] {

.addContainerGap(37, Short.MAX_VALUE)) java.lang.Integer.class, java.lang.String.class,


.addGroup(jFrame15Layout.createSequentialGroup() java.lang.String.class, java.lang.Object.class,
); java.lang.String.class, java.lang.Integer.class,
.addComponent(jButton28, java.lang.Integer.class, java.lang.Integer.class,
javax.swing.GroupLayout.PREFERRED_SIZE, 463, java.lang.Integer.class
javax.swing.GroupLayout.PREFERRED_SIZE)
jFrame16.setTitle("Bill History"); };

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem jFrame16.setMinimumSize(new java.awt.Dimension(700,


ent.RELATED, 99, Short.MAX_VALUE) 386));
public Class getColumnClass(int columnIndex) {
.addComponent(jButton29, jFrame16.setResizable(false);
javax.swing.GroupLayout.PREFERRED_SIZE, 126, return types [columnIndex];
javax.swing.GroupLayout.PREFERRED_SIZE)))
}
.addContainerGap()) jButton30.setText("Show Bill History");
});
); jButton30.addActionListener(new
java.awt.event.ActionListener() { jTable5.getTableHeader().setReorderingAllowed(false);
jFrame15Layout.setVerticalGroup(
public void jScrollPane10.setViewportView(jTable5);
actionPerformed(java.awt.event.ActionEvent evt) {
jFrame15Layout.createParallelGroup(javax.swing.GroupLayout
.Alignment.LEADING) jButton30ActionPerformed(evt);
jLabel58.setFont(new java.awt.Font("Tahoma", 1, 12)); //
.addGroup(jFrame15Layout.createSequentialGroup() } NOI18N

.addContainerGap() }); jLabel58.setText("Enter item Code :");

.addComponent(jLabel56,
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) jButton31.setText("Back"); jLabel59.setFont(new java.awt.Font("Tahoma", 1, 14)); //
NOI18N

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jLabel59.setText("Bill History"); jFrame17.setMinimumSize(new java.awt.Dimension(400,


.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem 450));
ent.RELATED, 91, Short.MAX_VALUE)
jFrame17.setResizable(false);
javax.swing.GroupLayout jFrame16Layout = new .addComponent(jButton31,
javax.swing.GroupLayout(jFrame16.getContentPane()); javax.swing.GroupLayout.PREFERRED_SIZE, 126,
javax.swing.GroupLayout.PREFERRED_SIZE)))
jFrame16.getContentPane().setLayout(jFrame16Layout); jLabel60.setFont(new java.awt.Font("Tahoma", 1, 14)); //
.addContainerGap()) NOI18N
jFrame16Layout.setHorizontalGroup(
); jLabel60.setText("Supplier Data");

jFrame16Layout.createParallelGroup(javax.swing.GroupLayout jFrame16Layout.setVerticalGroup(
.Alignment.LEADING)
jLabel61.setText("Supplier Name :");
.addGap(0, 700, Short.MAX_VALUE) jFrame16Layout.createParallelGroup(javax.swing.GroupLayout
.Alignment.LEADING)
.addGroup(jFrame16Layout.createSequentialGroup()
.addGroup(jFrame16Layout.createSequentialGroup() jLabel62.setText("Supplier Code :");
.addGap(33, 33, 33)
.addContainerGap()
.addComponent(jLabel58,
javax.swing.GroupLayout.PREFERRED_SIZE, 222, .addComponent(jLabel59, jButton32.setText("Insert");
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) jButton32.addActionListener(new
.addGap(120, 120, 120) java.awt.event.ActionListener() {
.addGap(40, 40, 40)
.addComponent(jTextField40, public void
javax.swing.GroupLayout.PREFERRED_SIZE, 315, actionPerformed(java.awt.event.ActionEvent evt) {
javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jFrame16Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.LEADING) jButton32ActionPerformed(evt);

.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, .addComponent(jLabel58, }
Short.MAX_VALUE)) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) });

.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, .addComponent(jTextField40,
jFrame16Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, jButton33.setText("Reset");
.addContainerGap(283, Short.MAX_VALUE) javax.swing.GroupLayout.PREFERRED_SIZE))
jButton33.addActionListener(new
.addComponent(jLabel59, java.awt.event.ActionListener() {
javax.swing.GroupLayout.PREFERRED_SIZE, 222, .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
javax.swing.GroupLayout.PREFERRED_SIZE) ent.UNRELATED) public void
actionPerformed(java.awt.event.ActionEvent evt) {
.addGap(195, 195, 195))
.addGroup(jFrame16Layout.createParallelGroup(javax.swing.G jButton33ActionPerformed(evt);
roupLayout.Alignment.BASELINE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, }
jFrame16Layout.createSequentialGroup() .addComponent(jButton30)
});
.addContainerGap() .addComponent(jButton31))

.addGroup(jFrame16Layout.createParallelGroup(javax.swing.G .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem jLabel63.setText("Address :");


roupLayout.Alignment.TRAILING) ent.UNRELATED)

.addComponent(jScrollPane10, .addComponent(jScrollPane10,
javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 190, jLabel64.setText("State :");
javax.swing.GroupLayout.DEFAULT_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)
Short.MAX_VALUE)
.addContainerGap(25, Short.MAX_VALUE))
jLabel65.setText("Pin Number :");
.addGroup(jFrame16Layout.createSequentialGroup() );

.addComponent(jButton30,
javax.swing.GroupLayout.PREFERRED_SIZE, 463, jLabel66.setText("City : ");
javax.swing.GroupLayout.PREFERRED_SIZE) jFrame17.setTitle("Supplier Data");

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addComponent(jLabel63, .addGap(133, 133, 133)


javax.swing.GroupLayout.PREFERRED_SIZE, 146,
jLabel67.setText("Phone Number :"); javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel60)

.addComponent(jLabel66, .addContainerGap(175, Short.MAX_VALUE))


javax.swing.GroupLayout.PREFERRED_SIZE, 146,
jButton34.setText("Back"); javax.swing.GroupLayout.PREFERRED_SIZE) );

jButton34.addActionListener(new .addComponent(jLabel65, jFrame17Layout.setVerticalGroup(


java.awt.event.ActionListener() { javax.swing.GroupLayout.PREFERRED_SIZE, 146,
javax.swing.GroupLayout.PREFERRED_SIZE)
public void jFrame17Layout.createParallelGroup(javax.swing.GroupLayout
actionPerformed(java.awt.event.ActionEvent evt) { .addComponent(jLabel64, .Alignment.LEADING)
javax.swing.GroupLayout.PREFERRED_SIZE, 146,
jButton34ActionPerformed(evt); javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jFrame17Layout.createSequentialGroup()

} .addGap(32, 32, 32) .addContainerGap()

}); .addComponent(jLabel60)
.addGroup(jFrame17Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.TRAILING, false) .addGap(41, 41, 41)

javax.swing.GroupLayout jFrame17Layout = new .addComponent(jTextField48)


javax.swing.GroupLayout(jFrame17.getContentPane()); .addGroup(jFrame17Layout.createParallelGroup(javax.swing.G
.addComponent(jTextField47, roupLayout.Alignment.TRAILING)
jFrame17.getContentPane().setLayout(jFrame17Layout); javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel62,
jFrame17Layout.setHorizontalGroup( .addComponent(jTextField42, javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.DEFAULT_SIZE, 135,
jFrame17Layout.createParallelGroup(javax.swing.GroupLayout Short.MAX_VALUE) .addComponent(jTextField47,
.Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE,
.addComponent(jTextField43, javax.swing.GroupLayout.DEFAULT_SIZE,
.addGroup(jFrame17Layout.createSequentialGroup() javax.swing.GroupLayout.Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE))

.addGap(37, 37, 37) .addComponent(jTextField41, .addGap(11, 11, 11)


javax.swing.GroupLayout.Alignment.LEADING)

.addGroup(jFrame17Layout.createParallelGroup(javax.swing.G .addComponent(jTextField44, .addGroup(jFrame17Layout.createParallelGroup(javax.swing.G


roupLayout.Alignment.LEADING) javax.swing.GroupLayout.Alignment.LEADING)))) roupLayout.Alignment.BASELINE)

.addContainerGap(50, Short.MAX_VALUE)) .addComponent(jLabel61,


.addGroup(jFrame17Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE, 26,
.addGroup(jFrame17Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel67,
javax.swing.GroupLayout.PREFERRED_SIZE, 146, .addGap(55, 55, 55) .addComponent(jTextField48,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE,
.addComponent(jButton32) javax.swing.GroupLayout.DEFAULT_SIZE,
.addGap(32, 32, 32) javax.swing.GroupLayout.PREFERRED_SIZE))

.addComponent(jTextField45, .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
javax.swing.GroupLayout.PREFERRED_SIZE, 135, ent.RELATED, 135, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
javax.swing.GroupLayout.PREFERRED_SIZE)) ent.UNRELATED)
.addComponent(jButton33)

.addGroup(jFrame17Layout.createSequentialGroup() .addGap(88, 88, 88)) .addGroup(jFrame17Layout.createParallelGroup(javax.swing.G


roupLayout.Alignment.BASELINE)
.addGroup(jFrame17Layout.createSequentialGroup()
.addGroup(jFrame17Layout.createParallelGroup(javax.swing.G .addComponent(jLabel63,
roupLayout.Alignment.LEADING) .addGap(136, 136, 136) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel62, .addComponent(jButton34,
javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE, 101, .addComponent(jTextField43,
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
.addComponent(jLabel61, .addContainerGap(163, Short.MAX_VALUE)) javax.swing.GroupLayout.PREFERRED_SIZE))
javax.swing.GroupLayout.PREFERRED_SIZE, 146,
javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jFrame17Layout.createSequentialGroup()

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addComponent(jTextField44, public void


.addGroup(jFrame17Layout.createParallelGroup(javax.swing.G javax.swing.GroupLayout.PREFERRED_SIZE, actionPerformed(java.awt.event.ActionEvent evt) {
roupLayout.Alignment.LEADING) javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))) jButton37ActionPerformed(evt);

.addGroup(jFrame17Layout.createSequentialGroup() .addGap(18, 18, 18) }

});
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGroup(jFrame17Layout.createParallelGroup(javax.swing.G
ent.UNRELATED) roupLayout.Alignment.LEADING)

.addComponent(jLabel66, .addComponent(jButton33) jLabel68.setText("Enter Supplier Code Whose Data You


javax.swing.GroupLayout.PREFERRED_SIZE, 26, Want To Delete :");
javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton32))

.addGap(48, 48, 48) .addGap(17, 17, 17)


jLabel69.setFont(new java.awt.Font("Tahoma", 1, 14)); //
.addComponent(jLabel65, .addComponent(jButton34) NOI18N
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) jLabel69.setText("Delete Supplier Data");

);
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.UNRELATED) javax.swing.GroupLayout jFrame18Layout = new
javax.swing.GroupLayout(jFrame18.getContentPane());
jFrame18.setTitle("Supplier Data");
.addGroup(jFrame17Layout.createParallelGroup(javax.swing.G jFrame18.getContentPane().setLayout(jFrame18Layout);
roupLayout.Alignment.BASELINE) jFrame18.setMinimumSize(new java.awt.Dimension(490,
200)); jFrame18Layout.setHorizontalGroup(
.addComponent(jLabel67,
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) jFrame18Layout.createParallelGroup(javax.swing.GroupLayout
jButton35.setText("Back"); .Alignment.LEADING)
.addComponent(jTextField45,
javax.swing.GroupLayout.PREFERRED_SIZE, jButton35.addActionListener(new .addGap(0, 434, Short.MAX_VALUE)
javax.swing.GroupLayout.DEFAULT_SIZE, java.awt.event.ActionListener() {
javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jFrame18Layout.createSequentialGroup()
public void
actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(jFrame17Layout.createSequentialGroup() .addGroup(jFrame18Layout.createParallelGroup(javax.swing.G
jButton35ActionPerformed(evt); roupLayout.Alignment.LEADING)
.addGap(13, 13, 13)
}
.addComponent(jTextField42, .addGroup(jFrame18Layout.createSequentialGroup()
javax.swing.GroupLayout.PREFERRED_SIZE, });
javax.swing.GroupLayout.DEFAULT_SIZE, .addGap(54, 54, 54)
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton37)
.addGap(18, 18, 18) jButton36.setText("Reset");

jButton36.addActionListener(new .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
.addGroup(jFrame17Layout.createParallelGroup(javax.swing.G java.awt.event.ActionListener() { ent.RELATED, 48, Short.MAX_VALUE)
roupLayout.Alignment.BASELINE)
public void .addComponent(jButton36,
.addComponent(jTextField41, actionPerformed(java.awt.event.ActionEvent evt) { javax.swing.GroupLayout.PREFERRED_SIZE, 79,
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.DEFAULT_SIZE, jButton36ActionPerformed(evt);
javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(11, 11, 11))
}
.addComponent(jLabel64,
javax.swing.GroupLayout.PREFERRED_SIZE, 26, }); .addGroup(jFrame18Layout.createSequentialGroup()
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap()

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem jButton37.setText("Delete Data"); .addComponent(jLabel68,


ent.UNRELATED) javax.swing.GroupLayout.DEFAULT_SIZE, 271,
jButton37.addActionListener(new Short.MAX_VALUE)))
java.awt.event.ActionListener() {

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

javax.swing.GroupLayout.DEFAULT_SIZE,
.addGroup(jFrame18Layout.createParallelGroup(javax.swing.G javax.swing.GroupLayout.PREFERRED_SIZE))
roupLayout.Alignment.LEADING) },
.addGap(32, 32, 32)
new String [] {
.addGroup(jFrame18Layout.createSequentialGroup()
.addGroup(jFrame18Layout.createParallelGroup(javax.swing.G "Code", "Name", "Address", "City", "Pin_No.",
roupLayout.Alignment.BASELINE) "Phone_No."
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.UNRELATED) .addComponent(jButton37) }

.addComponent(jTextField46, .addComponent(jButton35) ){
javax.swing.GroupLayout.PREFERRED_SIZE, 133,
javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jButton36)) Class[] types = new Class [] {

java.lang.Integer.class, java.lang.String.class,
.addGroup(jFrame18Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, java.lang.String.class, java.lang.Object.class,
Short.MAX_VALUE)) java.lang.Integer.class, java.lang.Object.class
.addGap(36, 36, 36)
); };
.addComponent(jButton35,
javax.swing.GroupLayout.PREFERRED_SIZE, 79,
javax.swing.GroupLayout.PREFERRED_SIZE)))
jFrame19.setTitle("Supplier Data"); public Class getColumnClass(int columnIndex) {
.addContainerGap())
jFrame19.setMinimumSize(new java.awt.Dimension(585, return types [columnIndex];
445));
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, }
jFrame18Layout.createSequentialGroup() jFrame19.setResizable(false);
});
.addContainerGap(127, Short.MAX_VALUE)
jScrollPane11.setViewportView(jTable6);
.addComponent(jLabel69, jButton38.setText("Back");
javax.swing.GroupLayout.PREFERRED_SIZE, 203,
javax.swing.GroupLayout.PREFERRED_SIZE) jButton38.addActionListener(new
java.awt.event.ActionListener() { jLabel70.setFont(new java.awt.Font("Tahoma", 1, 14)); //
.addGap(104, 104, 104)) NOI18N
public void
); actionPerformed(java.awt.event.ActionEvent evt) { jLabel70.setText("Supplier Data");

jFrame18Layout.setVerticalGroup( jButton38ActionPerformed(evt);

} javax.swing.GroupLayout jFrame19Layout = new


jFrame18Layout.createParallelGroup(javax.swing.GroupLayout javax.swing.GroupLayout(jFrame19.getContentPane());
.Alignment.LEADING) });
jFrame19.getContentPane().setLayout(jFrame19Layout);
.addGap(0, 158, Short.MAX_VALUE)
jFrame19Layout.setHorizontalGroup(
.addGroup(jFrame18Layout.createSequentialGroup() jButton39.setText("Show Supplier Data In Table");

.addContainerGap() jButton39.addActionListener(new jFrame19Layout.createParallelGroup(javax.swing.GroupLayout


java.awt.event.ActionListener() { .Alignment.LEADING)
.addComponent(jLabel69,
javax.swing.GroupLayout.PREFERRED_SIZE, 30, public void
javax.swing.GroupLayout.PREFERRED_SIZE) actionPerformed(java.awt.event.ActionEvent evt) { .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jFrame19Layout.createSequentialGroup()
.addGap(27, 27, 27) jButton39ActionPerformed(evt);
.addContainerGap(251, Short.MAX_VALUE)
}
.addGroup(jFrame18Layout.createParallelGroup(javax.swing.G .addComponent(jLabel70)
roupLayout.Alignment.BASELINE) });
.addGap(242, 242, 242))
.addComponent(jLabel68,
javax.swing.GroupLayout.PREFERRED_SIZE, 24, .addGroup(jFrame19Layout.createSequentialGroup()
javax.swing.GroupLayout.PREFERRED_SIZE) jTable6.setModel(new
javax.swing.table.DefaultTableModel(
.addComponent(jTextField46, .addGroup(jFrame19Layout.createParallelGroup(javax.swing.G
javax.swing.GroupLayout.PREFERRED_SIZE, new Object [][] { roupLayout.Alignment.TRAILING)

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addGroup(javax.swing.GroupLayout.Alignment.LEADING, .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
jFrame19Layout.createSequentialGroup() Short.MAX_VALUE)) },

.addContainerGap() ); new String [] {

.addComponent(jScrollPane11, "Code", "Name", "Address", "City", "Pin_No.",


javax.swing.GroupLayout.DEFAULT_SIZE, 565, "Phone_No."
Short.MAX_VALUE)) jFrame20.setTitle("Supplier Data");
}
jFrame20.setMinimumSize(new java.awt.Dimension(649,
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, 550)); ){
jFrame19Layout.createSequentialGroup()
jFrame20.setResizable(false); Class[] types = new Class [] {
.addGap(26, 26, 26)
java.lang.Integer.class, java.lang.String.class,
.addComponent(jButton39, java.lang.String.class, java.lang.Object.class,
javax.swing.GroupLayout.PREFERRED_SIZE, 549, jLabel71.setFont(new java.awt.Font("Tahoma", 1, 14)); // java.lang.Integer.class, java.lang.Object.class
javax.swing.GroupLayout.PREFERRED_SIZE))) NOI18N
};
jLabel71.setText("Supplier Data :Query By City");
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
public Class getColumnClass(int columnIndex) {
jButton40.setText("Back");
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, return types [columnIndex];
jFrame19Layout.createSequentialGroup() jButton40.addActionListener(new
java.awt.event.ActionListener() { }
.addContainerGap(218, Short.MAX_VALUE)
public void });
.addComponent(jButton38, actionPerformed(java.awt.event.ActionEvent evt) {
javax.swing.GroupLayout.PREFERRED_SIZE, 168, jScrollPane12.setViewportView(jTable7);
javax.swing.GroupLayout.PREFERRED_SIZE) jButton40ActionPerformed(evt);

.addGap(199, 199, 199)) }


javax.swing.GroupLayout jFrame20Layout = new
); }); javax.swing.GroupLayout(jFrame20.getContentPane());

jFrame19Layout.setVerticalGroup( jFrame20.getContentPane().setLayout(jFrame20Layout);

jLabel72.setFont(new java.awt.Font("Tahoma", 1, 12)); // jFrame20Layout.setHorizontalGroup(


jFrame19Layout.createParallelGroup(javax.swing.GroupLayout NOI18N
.Alignment.LEADING)
jLabel72.setText("Enter Name Of City :"); jFrame20Layout.createParallelGroup(javax.swing.GroupLayout
.addGroup(jFrame19Layout.createSequentialGroup() .Alignment.LEADING)

.addContainerGap() .addGroup(jFrame20Layout.createSequentialGroup()
jButton41.setText("Show Supplier Data In Table");
.addComponent(jLabel70,
javax.swing.GroupLayout.PREFERRED_SIZE, 26, jButton41.addActionListener(new .addGroup(jFrame20Layout.createParallelGroup(javax.swing.G
javax.swing.GroupLayout.PREFERRED_SIZE) java.awt.event.ActionListener() { roupLayout.Alignment.LEADING)

.addGap(35, 35, 35) public void


actionPerformed(java.awt.event.ActionEvent evt) { .addGroup(jFrame20Layout.createSequentialGroup()
.addComponent(jButton39,
javax.swing.GroupLayout.PREFERRED_SIZE, 32, jButton41ActionPerformed(evt); .addGap(216, 216, 216)
javax.swing.GroupLayout.PREFERRED_SIZE)
} .addComponent(jButton40,
.addGap(18, 18, 18) javax.swing.GroupLayout.PREFERRED_SIZE, 168,
}); javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jScrollPane11,
javax.swing.GroupLayout.PREFERRED_SIZE, 241, .addGap(181, 181, 181))
javax.swing.GroupLayout.PREFERRED_SIZE)
jTable7.setModel(new
.addGap(18, 18, 18) javax.swing.table.DefaultTableModel( .addGroup(jFrame20Layout.createSequentialGroup()

.addComponent(jButton38) new Object [][] { .addContainerGap()

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

.addComponent(jScrollPane12, .addComponent(jTextField49,
javax.swing.GroupLayout.DEFAULT_SIZE, 629, javax.swing.GroupLayout.PREFERRED_SIZE,
Short.MAX_VALUE)) javax.swing.GroupLayout.DEFAULT_SIZE, public Class getColumnClass(int columnIndex) {
javax.swing.GroupLayout.PREFERRED_SIZE))
return types [columnIndex];
.addGroup(jFrame20Layout.createSequentialGroup() .addGap(29, 29, 29)
}
.addGap(33, 33, 33) .addComponent(jButton41,
javax.swing.GroupLayout.PREFERRED_SIZE, 32, });
.addComponent(jLabel72, javax.swing.GroupLayout.PREFERRED_SIZE)
javax.swing.GroupLayout.PREFERRED_SIZE, 222, jScrollPane13.setViewportView(jTable8);
javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18)

.addGap(55, 55, 55) .addComponent(jScrollPane12,


javax.swing.GroupLayout.PREFERRED_SIZE, 203, jLabel74.setFont(new java.awt.Font("Tahoma", 1, 12)); //
.addComponent(jTextField49, javax.swing.GroupLayout.PREFERRED_SIZE) NOI18N
javax.swing.GroupLayout.PREFERRED_SIZE, 244,
javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(37, 37, 37) jLabel74.setText("Enter Name Of State :");

.addComponent(jButton40)
.addGroup(jFrame20Layout.createSequentialGroup()
.addContainerGap(19, Short.MAX_VALUE)) jButton42.setText("Back");
.addGap(20, 20, 20)
); jButton42.addActionListener(new
.addComponent(jButton41, java.awt.event.ActionListener() {
javax.swing.GroupLayout.PREFERRED_SIZE, 611,
javax.swing.GroupLayout.PREFERRED_SIZE))) public void
jFrame21.setTitle("Supplier Data"); actionPerformed(java.awt.event.ActionEvent evt) {
.addContainerGap())
jFrame21.setMinimumSize(new java.awt.Dimension(641, jButton42ActionPerformed(evt);
510));
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, }
jFrame20Layout.createSequentialGroup() jFrame21.setResizable(false);
});
.addContainerGap(225, Short.MAX_VALUE)

.addComponent(jLabel71, jLabel73.setFont(new java.awt.Font("Tahoma", 1, 14)); //


javax.swing.GroupLayout.PREFERRED_SIZE, 222, NOI18N jButton43.setText("Show Supplier Data In Table");
javax.swing.GroupLayout.PREFERRED_SIZE)
jLabel73.setText("Supplier Data :Query By State"); jButton43.addActionListener(new
.addGap(202, 202, 202)) java.awt.event.ActionListener() {

); public void
jTable8.setModel(new actionPerformed(java.awt.event.ActionEvent evt) {
jFrame20Layout.setVerticalGroup( javax.swing.table.DefaultTableModel(
jButton43ActionPerformed(evt);
new Object [][] {
jFrame20Layout.createParallelGroup(javax.swing.GroupLayout }
.Alignment.LEADING)
});
.addGroup(jFrame20Layout.createSequentialGroup() },

.addContainerGap() new String [] {


javax.swing.GroupLayout jFrame21Layout = new
.addComponent(jLabel71, "Code", "Name", "Address", "City", "Pin_No.", javax.swing.GroupLayout(jFrame21.getContentPane());
javax.swing.GroupLayout.PREFERRED_SIZE, 26, "Phone_No."
javax.swing.GroupLayout.PREFERRED_SIZE) jFrame21.getContentPane().setLayout(jFrame21Layout);
}
.addGap(40, 40, 40) jFrame21Layout.setHorizontalGroup(
){

.addGroup(jFrame20Layout.createParallelGroup(javax.swing.G Class[] types = new Class [] { jFrame21Layout.createParallelGroup(javax.swing.GroupLayout


roupLayout.Alignment.BASELINE) .Alignment.LEADING)
java.lang.Integer.class, java.lang.String.class,
.addComponent(jLabel72, java.lang.String.class, java.lang.Object.class, .addGap(0, 641, Short.MAX_VALUE)
javax.swing.GroupLayout.PREFERRED_SIZE, 26, java.lang.Integer.class, java.lang.Object.class
javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jFrame21Layout.createSequentialGroup()
};

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jLabel76.setFont(new java.awt.Font("Tahoma", 1, 14)); //


.addGroup(jFrame21Layout.createParallelGroup(javax.swing.G jFrame21Layout.createParallelGroup(javax.swing.GroupLayout NOI18N
roupLayout.Alignment.LEADING) .Alignment.LEADING)
jLabel76.setText("Customer Data :Query By State");
.addGap(0, 456, Short.MAX_VALUE)
.addGroup(jFrame21Layout.createSequentialGroup()
.addGroup(jFrame21Layout.createSequentialGroup()
.addGap(216, 216, 216) jTable9.setModel(new
.addContainerGap() javax.swing.table.DefaultTableModel(
.addComponent(jButton42,
javax.swing.GroupLayout.PREFERRED_SIZE, 168, .addComponent(jLabel73, new Object [][] {
javax.swing.GroupLayout.PREFERRED_SIZE) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(181, 181, 181))
.addGap(40, 40, 40) },

.addGroup(jFrame21Layout.createSequentialGroup() new String [] {


.addGroup(jFrame21Layout.createParallelGroup(javax.swing.G
.addContainerGap() roupLayout.Alignment.BASELINE) "Code", "Name", "Address", "City", "Pin_No.",
"Phone_No."
.addComponent(jScrollPane13, .addComponent(jLabel74,
javax.swing.GroupLayout.DEFAULT_SIZE, 621, javax.swing.GroupLayout.PREFERRED_SIZE, 26, }
Short.MAX_VALUE)) javax.swing.GroupLayout.PREFERRED_SIZE)
){
.addComponent(jTextField50,
.addGroup(jFrame21Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE, Class[] types = new Class [] {
javax.swing.GroupLayout.DEFAULT_SIZE,
.addGap(33, 33, 33) javax.swing.GroupLayout.PREFERRED_SIZE)) java.lang.Integer.class, java.lang.String.class,
java.lang.String.class, java.lang.Object.class,
.addComponent(jLabel74, .addGap(29, 29, 29) java.lang.Integer.class, java.lang.Object.class
javax.swing.GroupLayout.PREFERRED_SIZE, 222,
javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton43, };
javax.swing.GroupLayout.PREFERRED_SIZE, 32,
.addGap(55, 55, 55) javax.swing.GroupLayout.PREFERRED_SIZE)

.addComponent(jTextField50, .addGap(18, 18, 18) public Class getColumnClass(int columnIndex) {


javax.swing.GroupLayout.PREFERRED_SIZE, 244,
javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPane13, return types [columnIndex];
javax.swing.GroupLayout.PREFERRED_SIZE, 203,
javax.swing.GroupLayout.PREFERRED_SIZE) }
.addGroup(jFrame21Layout.createSequentialGroup()
.addGap(37, 37, 37) });
.addGap(20, 20, 20)
.addComponent(jButton42) jScrollPane14.setViewportView(jTable9);
.addComponent(jButton43,
javax.swing.GroupLayout.PREFERRED_SIZE, 611,
javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)) jButton44.setText("Show Customer Data In Table");
.addContainerGap())
); jButton44.addActionListener(new
java.awt.event.ActionListener() {
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jFrame21Layout.createSequentialGroup() public void
jFrame22.setTitle("Customer Data"); actionPerformed(java.awt.event.ActionEvent evt) {
.addContainerGap(217, Short.MAX_VALUE)
jFrame22.setMinimumSize(new java.awt.Dimension(660, jButton44ActionPerformed(evt);
.addComponent(jLabel73, 460));
javax.swing.GroupLayout.PREFERRED_SIZE, 222, }
javax.swing.GroupLayout.PREFERRED_SIZE) jFrame22.setResizable(false);
});
.addGap(202, 202, 202))

); jLabel75.setFont(new java.awt.Font("Tahoma", 1, 12)); //


NOI18N jButton45.setText("Back");
jFrame21Layout.setVerticalGroup(
jLabel75.setText("Enter Customer Of State :"); jButton45.addActionListener(new
java.awt.event.ActionListener() {

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

public void javax.swing.GroupLayout.DEFAULT_SIZE,


actionPerformed(java.awt.event.ActionEvent evt) { .addGroup(jFrame22Layout.createSequentialGroup() javax.swing.GroupLayout.PREFERRED_SIZE))

jButton45ActionPerformed(evt); .addGap(10, 10, 10) .addGap(29, 29, 29)

} .addComponent(jButton44, .addComponent(jButton44,
javax.swing.GroupLayout.PREFERRED_SIZE, 611, javax.swing.GroupLayout.PREFERRED_SIZE, 32,
}); javax.swing.GroupLayout.PREFERRED_SIZE)) javax.swing.GroupLayout.PREFERRED_SIZE)

.addGap(18, 18, 18)


.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout jFrame22Layout = new jFrame22Layout.createSequentialGroup() .addComponent(jScrollPane14,
javax.swing.GroupLayout(jFrame22.getContentPane()); javax.swing.GroupLayout.PREFERRED_SIZE, 208,
javax.swing.GroupLayout.PREFERRED_SIZE)
jFrame22.getContentPane().setLayout(jFrame22Layout); .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
ent.RELATED, 197, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(49, Short.MAX_VALUE)))
jFrame22Layout.setHorizontalGroup(
.addComponent(jLabel76, );
javax.swing.GroupLayout.PREFERRED_SIZE, 222,
jFrame22Layout.createParallelGroup(javax.swing.GroupLayout javax.swing.GroupLayout.PREFERRED_SIZE)
.Alignment.LEADING)
.addGap(192, 192, 192))))
.addGroup(jFrame22Layout.createSequentialGroup() setDefaultCloseOperation(javax.swing.WindowConstants.EXIT
.addGap(20, 20, 20))) _ON_CLOSE);
.addGap(234, 234, 234)
); setTitle("Alfamart Inventory Control System");
.addComponent(jButton45,
javax.swing.GroupLayout.PREFERRED_SIZE, 168, jFrame22Layout.setVerticalGroup( setFont(new java.awt.Font("Arial", 1, 18)); // NOI18N
javax.swing.GroupLayout.PREFERRED_SIZE)
setLocationByPlatform(true);
.addContainerGap(258, Short.MAX_VALUE)) jFrame22Layout.createParallelGroup(javax.swing.GroupLayout
.Alignment.LEADING) setResizable(false);

.addGroup(jFrame22Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jFrame22Layout.createSequentialGroup() jLabel14.setIcon(new
.addGroup(jFrame22Layout.createSequentialGroup() javax.swing.ImageIcon(getClass().getResource("/project/ALFA
.addContainerGap(420, Short.MAX_VALUE) MART_LOGO_BARU.png"))); // NOI18N
.addGap(19, 19, 19)
.addComponent(jButton45)

.addGroup(jFrame22Layout.createParallelGroup(javax.swing.G .addContainerGap())
roupLayout.Alignment.TRAILING) jMenuBar1.setBorder(javax.swing.BorderFactory.createEtched
Border());
.addComponent(jScrollPane14, .addGroup(jFrame22Layout.createParallelGroup(javax.swing.G
javax.swing.GroupLayout.Alignment.LEADING, roupLayout.Alignment.LEADING)
javax.swing.GroupLayout.DEFAULT_SIZE, 621,
Short.MAX_VALUE) .addGroup(jFrame22Layout.createSequentialGroup()
jMenu1.setBorder(javax.swing.BorderFactory.createEtchedBo
.addGap(26, 26, 26) rder());
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
jFrame22Layout.createParallelGroup(javax.swing.GroupLayout .addComponent(jLabel76, jMenu1.setText("change Item");
.Alignment.LEADING) javax.swing.GroupLayout.PREFERRED_SIZE, 26,
javax.swing.GroupLayout.PREFERRED_SIZE) jMenu1.addActionListener(new
java.awt.event.ActionListener() {
.addGroup(jFrame22Layout.createSequentialGroup() .addGap(40, 40, 40)
public void
.addGap(23, 23, 23) actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(jFrame22Layout.createParallelGroup(javax.swing.G
.addComponent(jLabel75, roupLayout.Alignment.BASELINE) jMenu1ActionPerformed(evt);
javax.swing.GroupLayout.PREFERRED_SIZE, 222,
javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel75, }
javax.swing.GroupLayout.PREFERRED_SIZE, 26,
.addGap(55, 55, 55) javax.swing.GroupLayout.PREFERRED_SIZE) });

.addComponent(jTextField51, .addComponent(jTextField51,
javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jMenuBar1.add(jMenu1); jMenuItem6.addActionListener(new
jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStro java.awt.event.ActionListener() {
ke(java.awt.event.KeyEvent.VK_I,
java.awt.event.InputEvent.CTRL_MASK)); public void
actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1.setText("Insert"); jMenu2.setBorder(javax.swing.BorderFactory.createEtchedBo
rder()); jMenuItem6ActionPerformed(evt);
jMenuItem1.addActionListener(new
java.awt.event.ActionListener() { jMenu2.setText("Item"); }

public void });


actionPerformed(java.awt.event.ActionEvent evt) {
jMenu8.add(jMenuItem6);
jMenuItem1ActionPerformed(evt); jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStro
ke(java.awt.event.KeyEvent.VK_S,
} java.awt.event.InputEvent.CTRL_MASK));

}); jMenuItem5.setText("Show"); jMenuItem7.setAccelerator(javax.swing.KeyStroke.getKeyStro


ke(java.awt.event.KeyEvent.VK_C,
jMenu1.add(jMenuItem1); jMenuItem5.addActionListener(new java.awt.event.InputEvent.CTRL_MASK));
java.awt.event.ActionListener() {
jMenuItem7.setText("Code");
public void
actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem7.addActionListener(new
jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStro java.awt.event.ActionListener() {
ke(java.awt.event.KeyEvent.VK_U, jMenuItem5ActionPerformed(evt);
java.awt.event.InputEvent.CTRL_MASK)); public void
} actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem2.setText("Update");
}); jMenuItem7ActionPerformed(evt);
jMenuItem2.addActionListener(new
java.awt.event.ActionListener() { jMenu2.add(jMenuItem5); }

public void });


actionPerformed(java.awt.event.ActionEvent evt) {
jMenu8.setText("Find Item By :"); jMenu8.add(jMenuItem7);
jMenuItem2ActionPerformed(evt);

}
jMenu2.add(jMenu8);
}); jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStro
ke(java.awt.event.KeyEvent.VK_N,
jMenu1.add(jMenuItem2); java.awt.event.InputEvent.CTRL_MASK));
jMenuBar1.add(jMenu2);
jMenuItem4.setText("Name");

jMenuItem4.addActionListener(new
jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStro java.awt.event.ActionListener() {
ke(java.awt.event.KeyEvent.VK_D, jMenu3.setBorder(javax.swing.BorderFactory.createEtchedBo
java.awt.event.InputEvent.CTRL_MASK)); public void rder());
actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem3.setText("Delete"); jMenu3.setText("Customer");
jMenuItem4ActionPerformed(evt);
jMenuItem3.addActionListener(new jMenu3.addActionListener(new
java.awt.event.ActionListener() { } java.awt.event.ActionListener() {

public void }); public void


actionPerformed(java.awt.event.ActionEvent evt) { actionPerformed(java.awt.event.ActionEvent evt) {
jMenu8.add(jMenuItem4);
jMenuItem3ActionPerformed(evt); jMenu3ActionPerformed(evt);

} }

}); jMenuItem6.setAccelerator(javax.swing.KeyStroke.getKeyStro });


ke(java.awt.event.KeyEvent.VK_R,
jMenu1.add(jMenuItem3); java.awt.event.InputEvent.CTRL_MASK));

jMenuItem6.setText("Rate");

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jMenu7.add(jMenuItem13);
jMenuItem8.setAccelerator(javax.swing.KeyStroke.getKeyStro jMenuItem11.setAccelerator(javax.swing.KeyStroke.getKeyStr
ke(java.awt.event.KeyEvent.VK_I, oke(java.awt.event.KeyEvent.VK_H,
java.awt.event.InputEvent.ALT_MASK)); java.awt.event.InputEvent.ALT_MASK));
jMenu3.add(jMenu7);
jMenuItem8.setText("Insert"); jMenuItem11.setText("Show Detail");

jMenuItem8.addActionListener(new jMenuItem11.addActionListener(new
java.awt.event.ActionListener() { java.awt.event.ActionListener() { jMenuBar1.add(jMenu3);

public void public void


actionPerformed(java.awt.event.ActionEvent evt) { actionPerformed(java.awt.event.ActionEvent evt) {

jMenuItem8ActionPerformed(evt); jMenuItem11ActionPerformed(evt); jMenu4.setBorder(javax.swing.BorderFactory.createEtchedBo


rder());
} }
jMenu4.setText("Supplier");
}); });

jMenu3.add(jMenuItem8); jMenu3.add(jMenuItem11);

jMenuItem19.setAccelerator(javax.swing.KeyStroke.getKeyStr
oke(java.awt.event.KeyEvent.VK_I,
jMenu7.setText("Find Detail By :"); java.awt.event.InputEvent.SHIFT_MASK));
jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStro
ke(java.awt.event.KeyEvent.VK_U, jMenuItem19.setText("Insert");
java.awt.event.InputEvent.ALT_MASK));
jMenuItem19.addActionListener(new
jMenuItem9.setText("Update"); jMenuItem12.setAccelerator(javax.swing.KeyStroke.getKeyStr java.awt.event.ActionListener() {
oke(java.awt.event.KeyEvent.VK_C,
jMenuItem9.addActionListener(new java.awt.event.InputEvent.ALT_MASK)); public void
java.awt.event.ActionListener() { actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem12.setText("City");
public void jMenuItem19ActionPerformed(evt);
actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem12.addActionListener(new
java.awt.event.ActionListener() { }
jMenuItem9ActionPerformed(evt);
public void });
} actionPerformed(java.awt.event.ActionEvent evt) {
jMenu4.add(jMenuItem19);
}); jMenuItem12ActionPerformed(evt);

jMenu3.add(jMenuItem9); }

}); jMenuItem21.setAccelerator(javax.swing.KeyStroke.getKeyStr
oke(java.awt.event.KeyEvent.VK_D,
jMenu7.add(jMenuItem12); java.awt.event.InputEvent.SHIFT_MASK));
jMenuItem10.setAccelerator(javax.swing.KeyStroke.getKeyStr
oke(java.awt.event.KeyEvent.VK_D, jMenuItem21.setText("Delete");
java.awt.event.InputEvent.ALT_MASK));
jMenuItem21.addActionListener(new
jMenuItem10.setText("Delete"); jMenuItem13.setAccelerator(javax.swing.KeyStroke.getKeyStr java.awt.event.ActionListener() {
oke(java.awt.event.KeyEvent.VK_S,
jMenuItem10.addActionListener(new java.awt.event.InputEvent.ALT_MASK)); public void
java.awt.event.ActionListener() { actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem13.setText("State");
public void jMenuItem21ActionPerformed(evt);
actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem13.addActionListener(new
java.awt.event.ActionListener() { }
jMenuItem10ActionPerformed(evt);
public void });
} actionPerformed(java.awt.event.ActionEvent evt) {
jMenu4.add(jMenuItem21);
}); jMenuItem13ActionPerformed(evt);

jMenu3.add(jMenuItem10); }

}); jMenuItem22.setAccelerator(javax.swing.KeyStroke.getKeyStr

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

oke(java.awt.event.KeyEvent.VK_H, jMenu10.setText("Search By");


java.awt.event.InputEvent.SHIFT_MASK));
jMenu4.add(jMenu11);
jMenuItem22.setText("Show Details");

jMenuItem22.addActionListener(new jMenuItem17.setAccelerator(javax.swing.KeyStroke.getKeyStr
java.awt.event.ActionListener() { jMenuBar1.add(jMenu4); oke(java.awt.event.KeyEvent.VK_B,
java.awt.event.InputEvent.CTRL_MASK));
public void
actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem17.setText("Bill Code");

jMenuItem22ActionPerformed(evt); jMenu5.setBorder(javax.swing.BorderFactory.createEtchedBo jMenuItem17.addActionListener(new


rder()); java.awt.event.ActionListener() {
}
jMenu5.setText("Purchase"); public void
}); actionPerformed(java.awt.event.ActionEvent evt) {

jMenu4.add(jMenuItem22); jMenuItem17ActionPerformed(evt);

jMenuItem15.setAccelerator(javax.swing.KeyStroke.getKeyStr }
oke(java.awt.event.KeyEvent.VK_P,
jMenu11.setText("Find Details by :"); java.awt.event.InputEvent.CTRL_MASK)); });

jMenuItem15.setText("Selling"); jMenu10.add(jMenuItem17);

jMenuItem15.addActionListener(new
jMenuItem20.setAccelerator(javax.swing.KeyStroke.getKeyStr java.awt.event.ActionListener() {
oke(java.awt.event.KeyEvent.VK_C,
java.awt.event.InputEvent.SHIFT_MASK)); public void jMenuItem18.setAccelerator(javax.swing.KeyStroke.getKeyStr
actionPerformed(java.awt.event.ActionEvent evt) { oke(java.awt.event.KeyEvent.VK_I,
jMenuItem20.setText("City"); java.awt.event.InputEvent.CTRL_MASK));
jMenuItem15ActionPerformed(evt);
jMenuItem20.addActionListener(new jMenuItem18.setText("Item Code");
java.awt.event.ActionListener() { }
jMenuItem18.addActionListener(new
public void }); java.awt.event.ActionListener() {
actionPerformed(java.awt.event.ActionEvent evt) {
jMenu5.add(jMenuItem15); public void
jMenuItem20ActionPerformed(evt); actionPerformed(java.awt.event.ActionEvent evt) {

} jMenuItem18ActionPerformed(evt);
jMenu9.setText("Bill");
}); }

jMenu11.add(jMenuItem20); });

jMenuItem16.setAccelerator(javax.swing.KeyStroke.getKeyStr jMenu10.add(jMenuItem18);
oke(java.awt.event.KeyEvent.VK_H,
java.awt.event.InputEvent.CTRL_MASK));
jMenuItem23.setAccelerator(javax.swing.KeyStroke.getKeyStr
oke(java.awt.event.KeyEvent.VK_S, jMenuItem16.setText("Show Bill History"); jMenu9.add(jMenu10);
java.awt.event.InputEvent.SHIFT_MASK));
jMenuItem16.addActionListener(new
jMenuItem23.setText("State"); java.awt.event.ActionListener() {
jMenu5.add(jMenu9);
jMenuItem23.addActionListener(new public void
java.awt.event.ActionListener() { actionPerformed(java.awt.event.ActionEvent evt) {

public void jMenuItem16ActionPerformed(evt); jMenuBar1.add(jMenu5);


actionPerformed(java.awt.event.ActionEvent evt) {
}
jMenuItem23ActionPerformed(evt);
});
} jMenu6.setBorder(javax.swing.BorderFactory.createEtchedBo
jMenu9.add(jMenuItem16); rder());
});
jMenu6.setText("Exit");
jMenu11.add(jMenuItem23);

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

pack(); }

}// </editor-fold> catch(Exception e)


jMenuItem14.setAccelerator(javax.swing.KeyStroke.getKeyStr
oke(java.awt.event.KeyEvent.VK_E, {
java.awt.event.InputEvent.CTRL_MASK));
private void JOptionPane.showMessageDialog(null,"Invalid
jMenuItem14.setText("Exit Window"); jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) Entry","message",2);
{
jMenuItem14.addActionListener(new }
java.awt.event.ActionListener() { jFrame1.dispose();

public void jFrame1.setVisible(true);


actionPerformed(java.awt.event.ActionEvent evt) { }
}
jMenuItem14ActionPerformed(evt);

} private void
@SuppressWarnings("UseSpecificCatch") jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
});
private void jTextField3.setText(null);
jMenu6.add(jMenuItem14); jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
jTextField4.setText(null);
try{ String mk = jTextField6.getText();
jTextField5.setText(null);
jMenuBar1.add(jMenu6); int mo = Integer.parseInt(mk);
jTextField6.setText(null);
String ml = jTextField4.getText();
}
setJMenuBar(jMenuBar1); String mj = jTextField5.getText();

String md = jTextField3.getText();
private void
javax.swing.GroupLayout layout = new try{ jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.GroupLayout(getContentPane()); {
Class.forName("com.mysql.jdbc.Driver").newInstance();
getContentPane().setLayout(layout); jFrame2.dispose();
Connection con =
layout.setHorizontalGroup( (Connection)DriverManager.getConnection("jdbc:mysql://loca jFrame2.setVisible(true);
lhost/practise","root","");
}
layout.createParallelGroup(javax.swing.GroupLayout.Alignme Statement stmt = con.createStatement();
nt.LEADING)
String query = "Insert into item1 values('"+ml+"','" +
.addComponent(jLabel14, mj+"','"+ mk+"','"+ md+"');"; private void
javax.swing.GroupLayout.Alignment.TRAILING, jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {
javax.swing.GroupLayout.DEFAULT_SIZE, 1366, stmt.executeUpdate(query);
Short.MAX_VALUE)
JOptionPane.showMessageDialog(this,"Record has been
); inserted"); }

layout.setVerticalGroup( stmt.close();

con.close(); private void


layout.createParallelGroup(javax.swing.GroupLayout.Alignme jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
nt.LEADING)
try{ String mk = jTextField7.getText();
.addGroup(layout.createSequentialGroup() }
String ml = jTextField9.getText();
.addContainerGap() catch(Exception e)
String mj = jTextField10.getText();
.addComponent(jLabel14, {
javax.swing.GroupLayout.DEFAULT_SIZE, 629, String md = jTextField8.getText();
Short.MAX_VALUE)) JOptionPane.showMessageDialog(this,"Error in
connectivity"); try{
);
} Class.forName("com.mysql.jdbc.Driver").newInstance();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

Connection con = jFrame3.setVisible(true);


(Connection)DriverManager.getConnection("jdbc:mysql://loca
lhost/practise","root",""); private void }
jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
Statement stmt = con.createStatement(); if(bp == JOptionPane.NO_OPTION){
jTextField8.setText(null);
int bp = JOptionPane.showConfirmDialog(this,"Do you want jFrame3.dispose();
to update the record ?"); jTextField7.setText(null);
jFrame3.setVisible(true);
if(bp == JOptionPane.YES_OPTION){ jTextField10.setText(null);
}
String query = "update item1 set item_name = jTextField9.setText(null);
'"+ml+"'and Rate = '" + mj+"'and Stock_in_hand = '"+ md }
+"'where item_code = '"+ mk+"';"; }
catch(Exception l)
stmt.execute(query);
{
JOptionPane.showMessageDialog(this,"Record has been private void
updated"); jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) try{
{
} int bp = JOptionPane.showConfirmDialog(this,"Do you
jFrame3.dispose(); want to delete the record ?");
if(bp == JOptionPane.CANCEL_OPTION){
jFrame3.setVisible(true); String ml = jTextField2.getText();
jFrame2.dispose();
} if(bp == JOptionPane.YES_OPTION){
jFrame2.setVisible(true);

}
private void String query = "Delete from item1 where item_name =
if(bp == JOptionPane.NO_OPTION){ jButton5ActionPerformed(java.awt.event.ActionEvent evt) { '"+ml+"';";

jFrame2.dispose(); stmt.executeUpdate(query);

jFrame2.setVisible(true); try{ JOptionPane.showMessageDialog(this,"Record has been


deleted");}
} Class.forName("com.mysql.jdbc.Driver").newInstance();
if(bp == JOptionPane.CANCEL_OPTION){
stmt.close(); Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca jFrame3.dispose();
con.close(); lhost/practise","root","");
jFrame3.setVisible(true);
Statement stmt = con.createStatement();
}
} try{
if(bp == JOptionPane.NO_OPTION){
catch(Exception e) String mk = jTextField1.getText();
jFrame3.dispose();
{ int lk = Integer.parseInt(mk);
jFrame3.setVisible(true);
JOptionPane.showMessageDialog(this,"Error in int bp = JOptionPane.showConfirmDialog(this,"Do you
connectivity" ); want to delete the record ?"); }

} if(bp == JOptionPane.YES_OPTION){ }

} catch(Exception k)

catch(Exception e) String query = "Delete from item1 where item_code = {


'"+mk+"';";
{ JOptionPane.showMessageDialog(this,"You must enter
stmt.executeUpdate(query); atleast one data","Message",2);
JOptionPane.showMessageDialog(null,"Invalid
Entry","message",2); JOptionPane.showMessageDialog(this,"Record has been }
deleted");}
} }
if(bp == JOptionPane.CANCEL_OPTION){
}
jFrame3.dispose();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

String query = "SELECT * FROM item1 ;"; try{

stmt.close(); ResultSet rs = stmt.executeQuery(query); DefaultTableModel model = (DefaultTableModel)


ups1.getModel();
con.close();

while(rs.next())
try{
} {
int ll = model.getRowCount() ;
catch(Exception e) model.addRow (new Object[]
{rs.getString("item_code"),rs.getString("item_name"),rs.getStr for(int lu = 0 ; lu <= ll ; ++lu)
{ ing("Rate"),rs.getString("Stock_in_hand")});
{
JOptionPane.showMessageDialog(this,"Error in }
connectivity"); model.removeRow(0);

} }}
rs.close();
} catch(Exception e)
stmt.close();
{}
con.close();
private void
jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
String mh = jTextField11.getText();
jTextField2.setText(null); }
String mm = jTextField12.getText();
jTextField1.setText(null); catch(Exception e)
try {
} {

JOptionPane.showMessageDialog(this,"Error in
connectivity"); Class.forName("com.mysql.jdbc.Driver").newInstance();
private void
jButton7ActionPerformed(java.awt.event.ActionEvent evt) { } Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca
DefaultTableModel model = (DefaultTableModel) } lhost/practise","root","");
ups.getModel();
Statement stmt = con.createStatement();
try {
private void String query = "SELECT * FROM item1 where Rate between
jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) '"+mm+"'and'"+mh+"';";
{
try{ ResultSet rs = stmt.executeQuery(query);
jFrame4.dispose();
int ml = model.getRowCount() ;
jFrame4.setVisible(true);
for(int mh = 0 ; mh <= ml ; ++mh) while(rs.next())
}
{ {

model.removeRow(0); model.addRow (new Object[]


private void {rs.getString("item_code"),rs.getString("item_name"),rs.getStr
}} jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) ing("Rate"),rs.getString("Stock_in_hand")});
{
catch(Exception e) }
jFrame5.dispose();
{}
jFrame5.setVisible(true);
Class.forName("com.mysql.jdbc.Driver").newInstance();
}
Connection con = rs.close();
(Connection)DriverManager.getConnection("jdbc:mysql://loca
lhost/practise","root",""); stmt.close();
private void
Statement stmt = con.createStatement(); jButton8ActionPerformed(java.awt.event.ActionEvent evt) { con.close();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jFrame7.setVisible(true);

Class.forName("com.mysql.jdbc.Driver").newInstance(); }

} Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca
catch(Exception e) lhost/practise","root",""); private void
jButton10ActionPerformed(java.awt.event.ActionEvent evt) {
{ Statement stmt = con.createStatement();
try{ DefaultTableModel model = (DefaultTableModel)
JOptionPane.showMessageDialog(null,"You must Enter String query = "SELECT * FROM item1 where item_name = ups3.getModel();
both upper and lower limit !" ,"Message",2); '"+me+"';";
String me = jTextField14.getText();
} ResultSet rs = stmt.executeQuery(query);
try {
}

catch(Exception e) while(rs.next())
Class.forName("com.mysql.jdbc.Driver").newInstance();
{ {
Connection con =
JOptionPane.showMessageDialog(null,"Invalid model.addRow (new Object[] (Connection)DriverManager.getConnection("jdbc:mysql://loca
Entry","message",2); {rs.getString("item_code"),rs.getString("item_name"),rs.getStr lhost/practise","root","");
ing("Rate"),rs.getString("Stock_in_hand")});
} Statement stmt = con.createStatement();
}
} String query = "SELECT * FROM item1 where item_code =
'"+me+"';";

rs.close(); ResultSet rs = stmt.executeQuery(query);


private void
jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) stmt.close();
{
con.close(); while(rs.next())
jFrame6.dispose();
{
jFrame6.setVisible(true);
} model.addRow (new Object[]
} {rs.getString("item_code"),rs.getString("item_name"),rs.getStr
catch(Exception e) ing("Rate"),rs.getString("Stock_in_hand")});

{ }
private void
jButton9ActionPerformed(java.awt.event.ActionEvent evt) { JOptionPane.showMessageDialog(null,"You must Enter the
name of item !","Message",2);
try{ DefaultTableModel model = (DefaultTableModel) rs.close();
ups2.getModel(); }
stmt.close();
String me = jTextField13.getText(); }
con.close();
try{ catch(Exception e)

int ml = model.getRowCount() ; {
}
for(int mh = 0 ; mh <= ml ; ++mh) JOptionPane.showMessageDialog(null,"Invalid
Entry","message",2); catch(Exception e)
{
} {
model.removeRow(0);
} JOptionPane.showMessageDialog(null,"You must Enter the
}} code of item !","Message",2);

catch(Exception e) }
private void
{} jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) }
{
try { catch(Exception e)
jFrame7.dispose();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

{ { String md = jTextField24.getText();

JOptionPane.showMessageDialog(null,"Invalid JOptionPane.showMessageDialog(this,"Invalid Entry or String mt = jTextField23.getText();


Entry","message",2); data is too long in any field");
String mm = jTextField26.getText();
} }
String mn = jTextField27.getText();
} }
try{
catch(Exception e)
Class.forName("com.mysql.jdbc.Driver").newInstance();
private void {
jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) Connection con =
{ JOptionPane.showMessageDialog(null,"Invalid Entry or field (Connection)DriverManager.getConnection("jdbc:mysql://loca
must be completely filled","message",2); lhost/practise","root","");
jFrame8.dispose();
} Statement stmt = con.createStatement();
jFrame8.setVisible(true);
} int bp = JOptionPane.showConfirmDialog(this,"Do you want
} to update the record ?");

if(bp == JOptionPane.YES_OPTION){
private void
private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) { String query = "update item2 set customer_name = '"+ ml
jButton11ActionPerformed(java.awt.event.ActionEvent evt) { +"', address = '" + mj+"', city = '"+ md+"', state = '"+ mt+"',
jTextField21.setText(null); pin_no = '"+ mm +"', phone_no = '"+ mn+"'where
try{ String mk = jTextField15.getText(); customer_code = '"+ mk +"';";
jTextField15.setText(null);
String ml = jTextField16.getText(); stmt.execute(query);
jTextField16.setText(null);
String mj = jTextField17.getText(); JOptionPane.showMessageDialog(this,"Record has been
jTextField17.setText(null); updated");
String md = jTextField18.getText();
jTextField18.setText(null);
String mt = jTextField19.getText();
jTextField19.setText(null); }
String mm = jTextField20.getText();
jTextField20.setText(null); if(bp == JOptionPane.CANCEL_OPTION){
String mn = jTextField21.getText();
jFrame2.dispose();
try{
jFrame2.setVisible(true);
Class.forName("com.mysql.jdbc.Driver").newInstance();
} }
Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca if(bp == JOptionPane.NO_OPTION){
lhost/practise","root","");
private void jFrame2.dispose();
Statement stmt = con.createStatement(); jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt)
{ jFrame2.setVisible(true);
String query = "Insert into item2 values('"+mk+"','" +
ml+"','"+ mj+"','"+ md+"','" + mt+"','"+ mm+"','"+ mn+"');"; jFrame9.dispose(); }

stmt.executeUpdate(query); jFrame9.setVisible(true);

JOptionPane.showMessageDialog(this,"Record has been } stmt.close();


inserted");
con.close();
stmt.close();
private void
con.close(); jButton13ActionPerformed(java.awt.event.ActionEvent evt) {
}
try{ String mk = jTextField22.getText();
catch(Exception e)
} String ml = jTextField28.getText();
{
catch(Exception e) String mj = jTextField25.getText();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

JOptionPane.showMessageDialog(this,"Error in } JOptionPane.showMessageDialog(this,"Error in
connectivity" ); connectivity");

} }
private void
} jButton15ActionPerformed(java.awt.event.ActionEvent evt) { }

catch(Exception e)

{ try{ private void


jMenuItem11ActionPerformed(java.awt.event.ActionEvent
JOptionPane.showMessageDialog(null,"Invalid Entry or field Class.forName("com.mysql.jdbc.Driver").newInstance(); evt) {
must be completely filled","message",2);
Connection con = jFrame11.dispose();
} (Connection)DriverManager.getConnection("jdbc:mysql://loca
lhost/practise","root",""); jFrame11.setVisible(true);

Statement stmt = con.createStatement(); }


}

int bp = JOptionPane.showConfirmDialog(this,"Do you private void


private void want to delete the record ?"); jMenu3ActionPerformed(java.awt.event.ActionEvent evt) {
jButton14ActionPerformed(java.awt.event.ActionEvent evt) {
if(bp == JOptionPane.YES_OPTION){
jTextField27.setText(null);
String ml = jTextField29.getText(); }
jTextField22.setText(null);
String query = "Delete from item2 where customer_code
jTextField23.setText(null); = '"+ml+"';";
private void
jTextField24.setText(null); stmt.executeUpdate(query); jButton18ActionPerformed(java.awt.event.ActionEvent evt) {

jTextField25.setText(null); JOptionPane.showMessageDialog(this,"Record has been DefaultTableModel model = (DefaultTableModel)


deleted");} jTable1.getModel();
jTextField26.setText(null);
if(bp == JOptionPane.CANCEL_OPTION){ try {
jTextField28.setText(null);
jFrame3.dispose(); try{
}
jFrame3.setVisible(true); int ml = model.getRowCount() ;

} for(int mh = 0 ; mh <= ml ; ++mh)


private void
jMenuItem10ActionPerformed(java.awt.event.ActionEvent if(bp == JOptionPane.NO_OPTION){ {
evt) {
jFrame3.dispose(); model.removeRow(0);
jFrame10.dispose();
jFrame3.setVisible(true); }}
jFrame10.setVisible(true);
} catch(Exception e)
}
{}

Class.forName("com.mysql.jdbc.Driver").newInstance();
private void
jButton17ActionPerformed(java.awt.event.ActionEvent evt) { stmt.close(); Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca
jFrame10.setVisible(false); con.close(); lhost/practise","root","");

} Statement stmt = con.createStatement();

} String query = "SELECT * FROM item2 ;";

private void catch(Exception e) ResultSet rs = stmt.executeQuery(query);


jButton16ActionPerformed(java.awt.event.ActionEvent evt) {
{ while(rs.next())
jTextField29.setText(null);

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

{ model.removeRow(0); }

model.addRow (new Object[] }} }


{rs.getString("customer_code"),rs.getString("customer_name"
),rs.getString("address"),rs.getString("city"),rs.getString("state catch(Exception e)
"),rs.getString("pin_no"),rs.getString("phone_no")});
{} private void
} jButton21ActionPerformed(java.awt.event.ActionEvent evt) {
try {
jFrame12.setVisible(false);

rs.close(); }
Class.forName("com.mysql.jdbc.Driver").newInstance();
stmt.close();
Connection con =
con.close(); (Connection)DriverManager.getConnection("jdbc:mysql://loca private void
lhost/practise","root",""); jMenuItem14ActionPerformed(java.awt.event.ActionEvent
evt) {
Statement stmt = con.createStatement();
} System.exit(0);
String query = "SELECT * FROM item2 where city =
catch(Exception e) '"+jTextField30.getText()+"';"; }

{ ResultSet rs = stmt.executeQuery(query);

JOptionPane.showMessageDialog(this,"Error in private void


connectivity"); jMenuItem16ActionPerformed(java.awt.event.ActionEvent
while(rs.next()) evt) {
}
{ jFrame14.dispose();
}
model.addRow (new Object[] jFrame14.setVisible(true);
{rs.getString("customer_code"),rs.getString("customer_name"
),rs.getString("address"),rs.getString("city"),rs.getString("state }
private void "),rs.getString("pin_no"),rs.getString("phone_no")});
jButton19ActionPerformed(java.awt.event.ActionEvent evt) {
}
jFrame11.setVisible(false); private void
jMenuItem15ActionPerformed(java.awt.event.ActionEvent
} evt) {
rs.close();
jFrame13.dispose();
stmt.close();
private void jFrame13.setVisible(true);
jMenuItem12ActionPerformed(java.awt.event.ActionEvent con.close();
evt) { }

jFrame12.dispose();
}
jFrame12.setVisible(true); private void
catch(Exception e) jTextField34ActionPerformed(java.awt.event.ActionEvent evt)
} {
{

JOptionPane.showMessageDialog(this,"Error in
private void connectivity"); }
jButton20ActionPerformed(java.awt.event.ActionEvent evt) {
}
try{ DefaultTableModel model = (DefaultTableModel)
jTable2.getModel(); } private void
jButton24ActionPerformed(java.awt.event.ActionEvent evt) {
try{ catch(Exception e)
try {
int ml = model.getRowCount() ; {

for(int mh = 0 ; mh <= ml ; ++mh) JOptionPane.showMessageDialog(null,"Invalid Entry


","message",2); //31,32,34,35
{

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jTextArea1.append(" YOUR BILL " } catch (Exception ex) { ml = 0.10;


+ '\n');
}
jTextArea1.append('\n' +" " + '\n');
JOptionPane.showMessageDialog(this,"Please First else
jTextArea1.append('\n' +" "+ Create Bill");
'\n'); {
}
jRadioButton1.setSelected(true);
}
}

jTextArea1.append('\n' + " Bill No. : "+ Double mw = ml * mm * 1.00 ;


jTextField31.getText() + '\n'); private void
jButton25ActionPerformed(java.awt.event.ActionEvent evt) { Double mo = mm - mw;
jTextArea1.append('\n' + " Item Name : "+
jTextField32.getText() + '\n'); jFrame13.setVisible(false); jTextField33.setText("" + mm);

jTextArea1.append('\n' + " Item Code : "+ } jTextField36.setText("" + mw);


jTextField34.getText() + '\n');
jTextField37.setText("" + mo);
jTextArea1.append('\n' + " Buyer Name : "+
jTextField38.getText() + '\n'); private void rs.close();
jButton22ActionPerformed(java.awt.event.ActionEvent evt) {
jTextArea1.append('\n' + " Quantity : "+ stmt.close();
jTextField35.getText() + '\n'); try{ int mg = Integer.parseInt(jTextField32.getText());
con.close();
jTextArea1.append('\n' + " Amount : "+ int mh = Integer.parseInt(jTextField35.getText());
jTextField33.getText() + '\n');
Double ml = 0.05 ;
jTextArea1.append('\n' +" Discount : "+ }
jTextField36.getText()+ '\n'); int mj = 0;
catch(Exception e)
jTextArea1.append('\n' +" Net Amount : "+ try {
jTextField37.getText() + '\n'); {

jTextArea1.append('\n' +" THANKYOU FOR JOptionPane.showMessageDialog(null,"Invalid


PURCHASING " + '\n'); Class.forName("com.mysql.jdbc.Driver").newInstance(); Entry","message",2);

jTextArea1.append('\n' +" "+ Connection con = }


'\n'); (Connection)DriverManager.getConnection("jdbc:mysql://loca
lhost/practise","root",""); }
jTextArea1.append('\n' +" "+
'\n'); Statement stmt = con.createStatement(); catch(Exception e)

jTextArea1.append('\n' +" "+ String query = "SELECT * FROM item1 where item_code = {
'\n'); '"+mg+"';";
JOptionPane.showMessageDialog(null,"Invalid
jTextArea1.append('\n' +" "+ ResultSet rs = stmt.executeQuery(query); Entry","message",2);
'\n');
while(rs.next()){ }
jTextArea1.append('\n' +" "+
'\n'); mj = rs.getInt("Rate");} }

int mm = mh * mj;

if(jRadioButton1.isSelected() == true) private void


jButton23ActionPerformed(java.awt.event.ActionEvent evt) {
jTextArea1.append('\n' +" Birla {
Group And Sons" + '\n'); try{
ml = 0.05;
jTextArea1.append('\n' +" ISO int mg = Integer.parseInt(jTextField32.getText());
9001:2001 Certified " + '\n'); }
int mh = Integer.parseInt(jTextField35.getText());
jTextArea1.print(); else if(jRadioButton2.isSelected() == true)
Double ml = 0.05 ;
{
String mq = jTextField32.getText();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

String jh = (String) jComboBox1.getSelectedItem(); ResultSet rs = stmt.executeQuery(quer);

String jj = (String) jComboBox2.getSelectedItem(); ml = 0.05; while(rs.next())

String ju = (String) jComboBox3.getSelectedItem(); } {mk = rs.getInt("Stock_in_hand");}

String mp = ""; else if(jRadioButton2.isSelected() == true) mk = mk - mh;

if(jRadioButton1.isSelected() == true) { String my = "" + mk;

{ String query = "update item1 set Stock_in_hand = '"+ my


+"'where item_code = '"+ mq +"';";
mp = "Customer"; ml = 0.10;
Statement stm = con.createStatement();
}
int rv = stm.executeUpdate(query);
} else
rs.close();
else if(jRadioButton2.isSelected() == true) {

{ jRadioButton1.setSelected(true);
stmt.close();
mp = "Supplier"; }
stm.close();
Double mw = ml * mm * 1.00 ;
con.close();
} Double mo = mm - mw;
}
else jTextField33.setText("" + mm);
catch(Exception b)
{ jTextField36.setText("" + mw);
{
jRadioButton1.setSelected(true); jTextField37.setText("" + mo);
JOptionPane.showMessageDialog(this,"Enter Data
mp = "Customer"; rs.close(); Correctly");

} stmt.close(); }

int mv = 0 ; con.close(); try {

try {

int mj = 0; }
Class.forName("com.mysql.jdbc.Driver").newInstance();
Class.forName("com.mysql.jdbc.Driver").newInstance(); catch(Exception e)
Connection con =
Connection con = { (Connection)DriverManager.getConnection("jdbc:mysql://loca
(Connection)DriverManager.getConnection("jdbc:mysql://loca lhost/practise","root","");
lhost/practise","root",""); JOptionPane.showMessageDialog(null,"Invalid
Entry","message",2); Statement stmt = con.createStatement();
Statement stmt = con.createStatement();
} String query = "Insert into item3
String query = "SELECT * FROM item1 where item_code = values('"+jTextField31.getText()+"','" + mp+"','" +
'"+mq+"';"; int mk = 0; jTextField38.getText()+"','"+ ju +"-"+jj+"-"+jh+"','"+
jTextField32.getText()+"','"+ jTextField34.getText()+"','"+
ResultSet rs = stmt.executeQuery(query); try{ jTextField35.getText()+"','"+ jTextField33.getText()+"','"+
jTextField36.getText()+"','"+ jTextField37.getText()+"');";
while(rs.next()){ mj = rs.getInt("Rate");
Class.forName("com.mysql.jdbc.Driver").newInstance(); int quer = stmt.executeUpdate(query);
mv = rs.getInt("Stock_in_hand");}
Connection con = JOptionPane.showMessageDialog(this,"Thankyou for
mv = mv - mh; (Connection)DriverManager.getConnection("jdbc:mysql://loca purchasing");
lhost/practise","root","");
int mm = mh * mj; stmt.close();
Statement stmt = con.createStatement();
if(jRadioButton1.isSelected() == true) con.close();
String quer = "SELECT * FROM item1 where item_code =
{ '"+mq+"';"; }

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

catch(Exception b) private void con.close();


jComboBox1ActionPerformed(java.awt.event.ActionEvent evt)
{ {

JOptionPane.showMessageDialog(this,"Enter Data }
Correctly");
} catch(Exception e)
}
{
}
private void JOptionPane.showMessageDialog(this,"Error in
catch(Exception mj ) jButton26ActionPerformed(java.awt.event.ActionEvent evt) { connectivity");

{ DefaultTableModel model = (DefaultTableModel) }


jTable3.getModel();
JOptionPane.showMessageDialog(this, "Please Enter Data }
Correctly"); try {

}
private void
} try{ jButton27ActionPerformed(java.awt.event.ActionEvent evt) {

int ll = model.getRowCount() ; jFrame14.setVisible(false);

private void for(int lu = 0 ; lu <= ll ; ++lu) }


jRadioButton1ActionPerformed(java.awt.event.ActionEvent
evt) { {

model.removeRow(0); private void


jMenuItem17ActionPerformed(java.awt.event.ActionEvent
} }} evt) {

catch(Exception e) jFrame15.dispose();

private void {} jFrame15.setVisible(true);


jTextField32ActionPerformed(java.awt.event.ActionEvent evt)
{ Class.forName("com.mysql.jdbc.Driver").newInstance(); }

Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca
lhost/practise","root",""); private void
jButton28ActionPerformed(java.awt.event.ActionEvent evt) {
} Statement stmt = con.createStatement();
try{ DefaultTableModel model = (DefaultTableModel)
String query = "SELECT * FROM item3;"; jTable4.getModel();

private void ResultSet rs = stmt.executeQuery(query); int mg = Integer.parseInt(jTextField39.getText());


jTextField31ActionPerformed(java.awt.event.ActionEvent evt)
{

while(rs.next()) try{

} { int ll = model.getRowCount() ;

model.addRow (new Object[] for(int lu = 0 ; lu <= ll ; ++lu)


{rs.getString("Billno"),rs.getString("customer_type"),rs.getStri
private void ng("name"),rs.getString("date"),rs.getString("item_name"),rs. {
jTextField38ActionPerformed(java.awt.event.ActionEvent evt) getString("quantity"),rs.getString("amount"),rs.getString("disc
{ ount"),rs.getString("netamount")}); model.removeRow(0);

} }}

} catch(Exception e)

rs.close(); {}

stmt.close(); try {

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jFrame15.setVisible(false); model.addRow (new Object[]


{rs.getString("Billno"),rs.getString("customer_type"),rs.getStri
Class.forName("com.mysql.jdbc.Driver").newInstance(); } ng("name"),rs.getString("date"),rs.getString("item_name"),rs.
getString("quantity"),rs.getString("amount"),rs.getString("disc
Connection con = ount"),rs.getString("netamount")});
(Connection)DriverManager.getConnection("jdbc:mysql://loca
lhost/practise","root",""); private void }
jMenuItem18ActionPerformed(java.awt.event.ActionEvent
Statement stmt = con.createStatement(); evt) {

String query = "SELECT * FROM item3 where Billno = jFrame16.dispose(); rs.close();


'"+mg+"';";
jFrame16.setVisible(true); stmt.close();
ResultSet rs = stmt.executeQuery(query);
} con.close();

while(rs.next())
private void }
{ jButton30ActionPerformed(java.awt.event.ActionEvent evt) {
catch(Exception e)
model.addRow (new Object[] try{ DefaultTableModel model = (DefaultTableModel)
{rs.getString("Billno"),rs.getString("customer_type"),rs.getStri jTable5.getModel(); {
ng("name"),rs.getString("date"),rs.getString("item_name"),rs.
getString("quantity"),rs.getString("amount"),rs.getString("disc int mg = Integer.parseInt(jTextField40.getText()); JOptionPane.showMessageDialog(this,"Error in
ount"),rs.getString("netamount")}); connectivity");

} }
try{
}
int ll = model.getRowCount() ;
rs.close(); catch(Exception e)
for(int lu = 0 ; lu <= ll ; ++lu)
stmt.close(); {
{
con.close(); JOptionPane.showMessageDialog(null,"Invalid Entry or field
model.removeRow(0); must be completely filled","message",2);

}} }
}
catch(Exception e) }
catch(Exception e)
{}
{
try { private void
JOptionPane.showMessageDialog(this,"Error in jButton31ActionPerformed(java.awt.event.ActionEvent evt) {
connectivity");
jFrame16.setVisible(false);
} Class.forName("com.mysql.jdbc.Driver").newInstance();

} Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca }
catch(Exception e) lhost/practise","root","");

{ Statement stmt = con.createStatement();


private void
JOptionPane.showMessageDialog(null,"Invalid Entry or field String query = "SELECT * FROM item3 where item_code = jMenuItem19ActionPerformed(java.awt.event.ActionEvent
must be completely filled","message",2); '"+mg+"';"; evt) {

} ResultSet rs = stmt.executeQuery(query); jFrame17.dispose();

} jFrame17.setVisible(true);

while(rs.next()) }

private void {
jButton29ActionPerformed(java.awt.event.ActionEvent evt) {

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

private void private void int bp = JOptionPane.showConfirmDialog(this,"Do you


jButton32ActionPerformed(java.awt.event.ActionEvent evt) { jButton33ActionPerformed(java.awt.event.ActionEvent evt) { want to delete the record ?");

try{ jTextField41.setText(null); if(bp == JOptionPane.YES_OPTION){

String mk = jTextField47.getText(); jTextField42.setText(null); String ml = jTextField46.getText();

String ml = jTextField48.getText(); jTextField43.setText(null); String query = "Delete from item4 where Supplier_code =
'"+ml+"';";
String mj = jTextField43.getText(); jTextField44.setText(null);
stmt.executeUpdate(query);
String md = jTextField42.getText(); jTextField45.setText(null);
JOptionPane.showMessageDialog(this,"Record has been
String mt = jTextField41.getText(); deleted");}

String mm = jTextField44.getText(); jTextField47.setText(null); if(bp == JOptionPane.CANCEL_OPTION){

String mn = jTextField45.getText(); jTextField48.setText(null); jFrame18.dispose();

try{ } jFrame18.setVisible(true);

Class.forName("com.mysql.jdbc.Driver").newInstance(); }

Connection con = private void if(bp == JOptionPane.NO_OPTION){


(Connection)DriverManager.getConnection("jdbc:mysql://loca jMenuItem21ActionPerformed(java.awt.event.ActionEvent
lhost/practise","root",""); evt) { jFrame18.dispose();

Statement stmt = con.createStatement(); jFrame18.dispose(); jFrame18.setVisible(true);

String query = "Insert into item4 values('"+mk+"','" + jFrame18.setVisible(true); }


ml+"','"+ mj+"','"+ md+"','" + mt+"','"+ mm+"','"+ mn+"');";
}
stmt.executeUpdate(query);

JOptionPane.showMessageDialog(this,"Record has been


inserted"); private void stmt.close();
jButton35ActionPerformed(java.awt.event.ActionEvent evt) {
stmt.close(); con.close();
jFrame18.setVisible(false);
con.close();
}
}

} catch(Exception e)
private void
catch(Exception e) jButton36ActionPerformed(java.awt.event.ActionEvent evt) { {

{ jTextField46.setText(null); JOptionPane.showMessageDialog(this,"Error in
connectivity");
JOptionPane.showMessageDialog(this,"Error in }
connectivity"); }

} }
private void
} jButton37ActionPerformed(java.awt.event.ActionEvent evt) {

catch(Exception e) try{ private void


jMenuItem22ActionPerformed(java.awt.event.ActionEvent
{ Class.forName("com.mysql.jdbc.Driver").newInstance(); evt) {

JOptionPane.showMessageDialog(null,"Invalid entry or field Connection con = jFrame19.dispose();


is not filled properly"); (Connection)DriverManager.getConnection("jdbc:mysql://loca
lhost/practise","root",""); jFrame19.setVisible(true);
}
Statement stmt = con.createStatement(); }
}

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

private void } Class.forName("com.mysql.jdbc.Driver").newInstance();


jButton38ActionPerformed(java.awt.event.ActionEvent evt) {
catch(Exception e) Connection con =
jFrame19.setVisible(false); (Connection)DriverManager.getConnection("jdbc:mysql://loca
{ lhost/practise","root","");
}
JOptionPane.showMessageDialog(this,"Error in Statement stmt = con.createStatement();
connectivity");
String query = "SELECT * FROM item4 where city =
private void } '"+jTextField49.getText()+"';";
jButton39ActionPerformed(java.awt.event.ActionEvent evt) {
} ResultSet rs = stmt.executeQuery(query);
DefaultTableModel model = (DefaultTableModel)
jTable6.getModel();

try { private void while(rs.next())


jMenuItem20ActionPerformed(java.awt.event.ActionEvent
evt) { {

try{ jFrame20.dispose(); model.addRow (new Object[]


{rs.getString("Supplier_code"),rs.getString("Supplier_name"),r
int ll = model.getRowCount() ; jFrame20.setVisible(true); s.getString("address"),rs.getString("city"),rs.getString("state"),
rs.getString("pin_no"),rs.getString("phone_no")});
for(int lu = 0 ; lu <= ll ; ++lu) }
}
{

model.removeRow(0); private void


jButton40ActionPerformed(java.awt.event.ActionEvent evt) { rs.close();
}}
jFrame20.setVisible(false); stmt.close();
catch(Exception e)
} con.close();
{}

Class.forName("com.mysql.jdbc.Driver").newInstance();
private void }
Connection con = jButton41ActionPerformed(java.awt.event.ActionEvent evt) {
(Connection)DriverManager.getConnection("jdbc:mysql://loca catch(Exception e)
lhost/practise","root",""); DefaultTableModel model = (DefaultTableModel)
jTable7.getModel(); {
Statement stmt = con.createStatement();
try{ JOptionPane.showMessageDialog(this,"Error in
String query = "SELECT * FROM item4 ;"; connectivity");

ResultSet rs = stmt.executeQuery(query); }
try{
}
int ll = model.getRowCount() ;
while(rs.next()) catch(Exception e)
for(int lu = 0 ; lu <= ll ; ++lu)
{ {
{
model.addRow (new Object[] JOptionPane.showMessageDialog(null,"Invalid Entry or field
{rs.getString("Supplier_code"),rs.getString("Supplier_name"),r model.removeRow(0); must be completely filled","message",2);
s.getString("address"),rs.getString("city"),rs.getString("state"),
rs.getString("pin_no"),rs.getString("phone_no")}); }} }

} catch(Exception e) }

{}

rs.close(); private void


jMenuItem23ActionPerformed(java.awt.event.ActionEvent
stmt.close(); try { evt) {

con.close(); jFrame21.dispose();

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

jFrame21.setVisible(true); rs.close(); }}

} stmt.close(); catch(Exception e)

con.close(); {}

private void try {


jButton42ActionPerformed(java.awt.event.ActionEvent evt) {
}
jFrame21.setVisible(false);
catch(Exception e) Class.forName("com.mysql.jdbc.Driver").newInstance();
}
{ Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca
JOptionPane.showMessageDialog(this,"Error in lhost/practise","root","");
private void connectivity");
jButton43ActionPerformed(java.awt.event.ActionEvent evt) { Statement stmt = con.createStatement();
}
try{ DefaultTableModel model = (DefaultTableModel) String query = "SELECT * FROM item2 where state =
jTable8.getModel(); '"+jTextField51.getText()+"';";

try{ } ResultSet rs = stmt.executeQuery(query);

int ll = model.getRowCount() ; catch(Exception e)

for(int lu = 0 ; lu <= ll ; ++lu) { while(rs.next())

{ JOptionPane.showMessageDialog(null,"Invalid Entry or field {


must be completely filled","message",2);
model.removeRow(0); model.addRow (new Object[]
} {rs.getString("customer_code"),rs.getString("customer_name"
}} ),rs.getString("address"),rs.getString("city"),rs.getString("state
} "),rs.getString("pin_no"),rs.getString("phone_no")});
catch(Exception e)
}
{}
private void
try { jMenuItem13ActionPerformed(java.awt.event.ActionEvent
evt) { rs.close();

jFrame22.dispose(); stmt.close();
Class.forName("com.mysql.jdbc.Driver").newInstance();
jFrame22.setVisible(true); con.close();
Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://loca }
lhost/practise","root","");
}
Statement stmt = con.createStatement();
private void catch(Exception e)
String query = "SELECT * FROM item4 where state = jButton44ActionPerformed(java.awt.event.ActionEvent evt) {
'"+jTextField50.getText()+"';"; {
try{ DefaultTableModel model = (DefaultTableModel)
ResultSet rs = stmt.executeQuery(query); jTable9.getModel(); JOptionPane.showMessageDialog(this,"Error in
connectivity");

}
while(rs.next())

{ try{
}
model.addRow (new Object[] int ll = model.getRowCount() ;
{rs.getString("Supplier_code"),rs.getString("Supplier_name"),r catch(Exception e)
s.getString("address"),rs.getString("city"),rs.getString("state"), for(int lu = 0 ; lu <= ll ; ++lu)
rs.getString("pin_no"),rs.getString("phone_no")}); {
{
} JOptionPane.showMessageDialog(null,"Invalid Entry or field
model.removeRow(0); must be completely filled","message",2);

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

} private javax.swing.JButton jButton13;

private void private javax.swing.JButton jButton14;


jButton53ActionPerformed(java.awt.event.ActionEvent evt) {
} private javax.swing.JButton jButton15;
jFrame8.setVisible(false);
private javax.swing.JButton jButton16;
}
private void private javax.swing.JButton jButton17;
jButton45ActionPerformed(java.awt.event.ActionEvent evt) {
private javax.swing.JButton jButton18;
jFrame22.setVisible(false); private void
jButton52ActionPerformed(java.awt.event.ActionEvent evt) { private javax.swing.JButton jButton19;
}
jFrame7.setVisible(false); private javax.swing.JButton jButton2;

} private javax.swing.JButton jButton20;


private void
jButton46ActionPerformed(java.awt.event.ActionEvent evt) { private javax.swing.JButton jButton21;

jFrame1.setVisible(false); private void private javax.swing.JButton jButton22;


jButton54ActionPerformed(java.awt.event.ActionEvent evt) {
} private javax.swing.JButton jButton23;
jFrame9.setVisible(false);
private javax.swing.JButton jButton24;
}
private void private javax.swing.JButton jButton25;
jButton47ActionPerformed(java.awt.event.ActionEvent evt) {
private javax.swing.JButton jButton26;
jFrame2.setVisible(false); private void
jButton34ActionPerformed(java.awt.event.ActionEvent evt) { private javax.swing.JButton jButton27;
}
jFrame17.setVisible(false); private javax.swing.JButton jButton28;

} private javax.swing.JButton jButton29;


private void
jButton48ActionPerformed(java.awt.event.ActionEvent evt) { private javax.swing.JButton jButton3;

jFrame3.setVisible(false); private javax.swing.JButton jButton30;

} public static void main(String args[]) { private javax.swing.JButton jButton31;

java.awt.EventQueue.invokeLater(new Runnable() { private javax.swing.JButton jButton32;

private void public void run() { private javax.swing.JButton jButton33;


jButton49ActionPerformed(java.awt.event.ActionEvent evt) {
new NewJFrame().setVisible(true); private javax.swing.JButton jButton34;
jFrame4.setVisible(false);
} private javax.swing.JButton jButton35;
}
}); private javax.swing.JButton jButton36;

} private javax.swing.JButton jButton37;


private void
jButton50ActionPerformed(java.awt.event.ActionEvent evt) { private javax.swing.JButton jButton38;

jFrame5.setVisible(false); // Variables declaration - do not modify private javax.swing.JButton jButton39;

} private javax.swing.ButtonGroup buttonGroup1; private javax.swing.JButton jButton4;

private javax.swing.JButton jButton1; private javax.swing.JButton jButton40;

private void private javax.swing.JButton jButton10; private javax.swing.JButton jButton41;


jButton51ActionPerformed(java.awt.event.ActionEvent evt) {
private javax.swing.JButton jButton11; private javax.swing.JButton jButton42;
jFrame6.setVisible(false);
private javax.swing.JButton jButton12; private javax.swing.JButton jButton43;
}

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

private javax.swing.JButton jButton44; private javax.swing.JFrame jFrame3; private javax.swing.JLabel jLabel34;

private javax.swing.JButton jButton45; private javax.swing.JFrame jFrame4; private javax.swing.JLabel jLabel35;

private javax.swing.JButton jButton46; private javax.swing.JFrame jFrame5; private javax.swing.JLabel jLabel36;

private javax.swing.JButton jButton47; private javax.swing.JFrame jFrame6; private javax.swing.JLabel jLabel37;

private javax.swing.JButton jButton48; private javax.swing.JFrame jFrame7; private javax.swing.JLabel jLabel38;

private javax.swing.JButton jButton49; private javax.swing.JFrame jFrame8; private javax.swing.JLabel jLabel39;

private javax.swing.JButton jButton5; private javax.swing.JFrame jFrame9; private javax.swing.JLabel jLabel4;

private javax.swing.JButton jButton50; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel40;

private javax.swing.JButton jButton51; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel41;

private javax.swing.JButton jButton52; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel42;

private javax.swing.JButton jButton53; private javax.swing.JLabel jLabel12; private javax.swing.JLabel jLabel43;

private javax.swing.JButton jButton54; private javax.swing.JLabel jLabel13; private javax.swing.JLabel jLabel44;

private javax.swing.JButton jButton6; private javax.swing.JLabel jLabel14; private javax.swing.JLabel jLabel45;

private javax.swing.JButton jButton7; private javax.swing.JLabel jLabel15; private javax.swing.JLabel jLabel46;

private javax.swing.JButton jButton8; private javax.swing.JLabel jLabel16; private javax.swing.JLabel jLabel47;

private javax.swing.JButton jButton9; private javax.swing.JLabel jLabel17; private javax.swing.JLabel jLabel48;

private javax.swing.JComboBox jComboBox1; private javax.swing.JLabel jLabel18; private javax.swing.JLabel jLabel49;

private javax.swing.JComboBox jComboBox2; private javax.swing.JLabel jLabel19; private javax.swing.JLabel jLabel5;

private javax.swing.JComboBox jComboBox3; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel50;

private javax.swing.JFrame jFrame1; private javax.swing.JLabel jLabel20; private javax.swing.JLabel jLabel51;

private javax.swing.JFrame jFrame10; private javax.swing.JLabel jLabel21; private javax.swing.JLabel jLabel52;

private javax.swing.JFrame jFrame11; private javax.swing.JLabel jLabel22; private javax.swing.JLabel jLabel53;

private javax.swing.JFrame jFrame12; private javax.swing.JLabel jLabel23; private javax.swing.JLabel jLabel54;

private javax.swing.JFrame jFrame13; private javax.swing.JLabel jLabel24; private javax.swing.JLabel jLabel55;

private javax.swing.JFrame jFrame14; private javax.swing.JLabel jLabel25; private javax.swing.JLabel jLabel56;

private javax.swing.JFrame jFrame15; private javax.swing.JLabel jLabel26; private javax.swing.JLabel jLabel57;

private javax.swing.JFrame jFrame16; private javax.swing.JLabel jLabel27; private javax.swing.JLabel jLabel58;

private javax.swing.JFrame jFrame17; private javax.swing.JLabel jLabel28; private javax.swing.JLabel jLabel59;

private javax.swing.JFrame jFrame18; private javax.swing.JLabel jLabel29; private javax.swing.JLabel jLabel6;

private javax.swing.JFrame jFrame19; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel60;

private javax.swing.JFrame jFrame2; private javax.swing.JLabel jLabel30; private javax.swing.JLabel jLabel61;

private javax.swing.JFrame jFrame20; private javax.swing.JLabel jLabel31; private javax.swing.JLabel jLabel62;

private javax.swing.JFrame jFrame21; private javax.swing.JLabel jLabel32; private javax.swing.JLabel jLabel63;

private javax.swing.JFrame jFrame22; private javax.swing.JLabel jLabel33; private javax.swing.JLabel jLabel64;

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

private javax.swing.JLabel jLabel65; private javax.swing.JMenuItem jMenuItem16; private javax.swing.JScrollPane jScrollPane7;

private javax.swing.JLabel jLabel66; private javax.swing.JMenuItem jMenuItem17; private javax.swing.JScrollPane jScrollPane8;

private javax.swing.JLabel jLabel67; private javax.swing.JMenuItem jMenuItem18; private javax.swing.JScrollPane jScrollPane9;

private javax.swing.JLabel jLabel68; private javax.swing.JMenuItem jMenuItem19; private javax.swing.JTable jTable1;

private javax.swing.JLabel jLabel69; private javax.swing.JMenuItem jMenuItem2; private javax.swing.JTable jTable2;

private javax.swing.JLabel jLabel7; private javax.swing.JMenuItem jMenuItem20; private javax.swing.JTable jTable3;

private javax.swing.JLabel jLabel70; private javax.swing.JMenuItem jMenuItem21; private javax.swing.JTable jTable4;

private javax.swing.JLabel jLabel71; private javax.swing.JMenuItem jMenuItem22; private javax.swing.JTable jTable5;

private javax.swing.JLabel jLabel72; private javax.swing.JMenuItem jMenuItem23; private javax.swing.JTable jTable6;

private javax.swing.JLabel jLabel73; private javax.swing.JMenuItem jMenuItem3; private javax.swing.JTable jTable7;

private javax.swing.JLabel jLabel74; private javax.swing.JMenuItem jMenuItem4; private javax.swing.JTable jTable8;

private javax.swing.JLabel jLabel75; private javax.swing.JMenuItem jMenuItem5; private javax.swing.JTable jTable9;

private javax.swing.JLabel jLabel76; private javax.swing.JMenuItem jMenuItem6; private javax.swing.JTextArea jTextArea1;

private javax.swing.JLabel jLabel8; private javax.swing.JMenuItem jMenuItem7; private javax.swing.JTextField jTextField1;

private javax.swing.JLabel jLabel9; private javax.swing.JMenuItem jMenuItem8; private javax.swing.JTextField jTextField10;

private javax.swing.JMenu jMenu1; private javax.swing.JMenuItem jMenuItem9; private javax.swing.JTextField jTextField11;

private javax.swing.JMenu jMenu10; private javax.swing.JPanel jPanel1; private javax.swing.JTextField jTextField12;

private javax.swing.JMenu jMenu11; private javax.swing.JPanel jPanel2; private javax.swing.JTextField jTextField13;

private javax.swing.JMenu jMenu2; private javax.swing.JPanel jPanel3; private javax.swing.JTextField jTextField14;

private javax.swing.JMenu jMenu3; private javax.swing.JPanel jPanel4; private javax.swing.JTextField jTextField15;

private javax.swing.JMenu jMenu4; private javax.swing.JPanel jPanel5; private javax.swing.JTextField jTextField16;

private javax.swing.JMenu jMenu5; private javax.swing.JRadioButton jRadioButton1; private javax.swing.JTextField jTextField17;

private javax.swing.JMenu jMenu6; private javax.swing.JRadioButton jRadioButton2; private javax.swing.JTextField jTextField18;

private javax.swing.JMenu jMenu7; private javax.swing.JScrollPane jScrollPane1; private javax.swing.JTextField jTextField19;

private javax.swing.JMenu jMenu8; private javax.swing.JScrollPane jScrollPane10; private javax.swing.JTextField jTextField2;

private javax.swing.JMenu jMenu9; private javax.swing.JScrollPane jScrollPane11; private javax.swing.JTextField jTextField20;

private javax.swing.JMenuBar jMenuBar1; private javax.swing.JScrollPane jScrollPane12; private javax.swing.JTextField jTextField21;

private javax.swing.JMenuItem jMenuItem1; private javax.swing.JScrollPane jScrollPane13; private javax.swing.JTextField jTextField22;

private javax.swing.JMenuItem jMenuItem10; private javax.swing.JScrollPane jScrollPane14; private javax.swing.JTextField jTextField23;

private javax.swing.JMenuItem jMenuItem11; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JTextField jTextField24;

private javax.swing.JMenuItem jMenuItem12; private javax.swing.JScrollPane jScrollPane3; private javax.swing.JTextField jTextField25;

private javax.swing.JMenuItem jMenuItem13; private javax.swing.JScrollPane jScrollPane4; private javax.swing.JTextField jTextField26;

private javax.swing.JMenuItem jMenuItem14; private javax.swing.JScrollPane jScrollPane5; private javax.swing.JTextField jTextField27;

private javax.swing.JMenuItem jMenuItem15; private javax.swing.JScrollPane jScrollPane6; private javax.swing.JTextField jTextField28;

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

private javax.swing.JTextField jTextField29; // End of variables declaration

private javax.swing.JTextField jTextField3;

private javax.swing.JTextField jTextField30; }

private javax.swing.JTextField jTextField31;

private javax.swing.JTextField jTextField32;

private javax.swing.JTextField jTextField33;

private javax.swing.JTextField jTextField34;

private javax.swing.JTextField jTextField35;

private javax.swing.JTextField jTextField36;

private javax.swing.JTextField jTextField37;

private javax.swing.JTextField jTextField38;

private javax.swing.JTextField jTextField39;

private javax.swing.JTextField jTextField4;

private javax.swing.JTextField jTextField40;

private javax.swing.JTextField jTextField41;

private javax.swing.JTextField jTextField42;

private javax.swing.JTextField jTextField43;

private javax.swing.JTextField jTextField44;

private javax.swing.JTextField jTextField45;

private javax.swing.JTextField jTextField46;

private javax.swing.JTextField jTextField47;

private javax.swing.JTextField jTextField48;

private javax.swing.JTextField jTextField49;

private javax.swing.JTextField jTextField5;

private javax.swing.JTextField jTextField50;

private javax.swing.JTextField jTextField51;

private javax.swing.JTextField jTextField6;

private javax.swing.JTextField jTextField7;

private javax.swing.JTextField jTextField8;

private javax.swing.JTextField jTextField9;

private javax.swing.JTable ups;

private javax.swing.JTable ups1;

private javax.swing.JTable ups2;

private javax.swing.JTable ups3;

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

Mysql

item1

S.NO. Column Name Data Type Size Key NULL

1 item_code Integer 5 YES

2 item_name Varchar 20 YES

3 rate Float 13,2 YES

4 stock_in_hand Integer 7 YES

item2

S.NO. Column Name Data Type Size Key NULL

1 customer_code Integer 5 YES

2 customer_name Varchar 25 YES

3 Address Varchar 30 YES

4 City Varchar 20 YES

5 State Varchar 20 YES

6 pin_no Integer 6 YES

7 phone_no Integer 15 YES

item3

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

S.NO. Column Name Data Type Size Key NULL

1 Billno Integer 6 YES

2 customer_type Varchar 8 YES

3 Name Varchar 25 YES

4 Date Date YES

5 item_code Integer 16 YES

6 item_name Varchar 15 YES

7 Quantity Integer 7 YES

8 Amount Float 13,2 YES

9 Discount Float 13,2 YES

10 Netamount Float 13,2 YES

item4

S.NO. Column Name Data Type Size Key NULL

1 supplier_code Integer 5 YES

2 supplier_name Varchar 25 YES

3 Address Varchar 30 YES

4 City Varchar 20 YES

5 State Varchar 25 YES

6 pin_no Integer 6 YES

7 phone_no Integer 15 YES

Nicole James Conwi 201414408


INVENTORY CONTROL SYSTEM in DCIT50 – Object-Oriented Programming

Nicole James Conwi 201414408

You might also like