Professional Documents
Culture Documents
In partial fulfillment
November 22,2017
______________________________________________________________________________________
DECLARATION OF WORK
__________________________________
__________________________________
Full Name over Signature
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.
-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
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.
*ENCAPSULATION
*POLYMORPHISM
USER INTERFACE
}); 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))
}
.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 :");
.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)
);
.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)
.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(
}
.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))
.addGroup(jFrame3Layout.createSequentialGroup() ); });
.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);
.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)
},
.addGroup(jFrame4Layout.createParallelGroup(javax.swing.Gr );
oupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
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)
"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)
jButton50ActionPerformed(evt); .addContainerGap()) },
} ); new String [] {
}
jFrame5Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING) ){
.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()
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(
jFrame7Layout.setHorizontalGroup( .addComponent(jButton52)))))
.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)
.addGroup(jFrame7Layout.createSequentialGroup() .addComponent(jLabel20))
public Class getColumnClass(int columnIndex) { .addGap(32, 32, 32) .addGap(18, 18, 18)
jFrame8.setResizable(false); });
.addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr
oupLayout.Alignment.LEADING)
.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()
jLabel35.setText("State :");
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGroup(jFrame8Layout.createParallelGroup(javax.swing.Gr
ent.UNRELATED) oupLayout.Alignment.BASELINE)
.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)
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))
jButton54.setText("Back"); .addComponent(jButton13)
}); );
jLabel39.setFont(new java.awt.Font("Tahoma", 1, 14)); //
jFrame9Layout.setVerticalGroup( NOI18N
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) }
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)
){ .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()
jButton19ActionPerformed(evt); ); jButton20ActionPerformed(evt);
} jFrame11Layout.setVerticalGroup( }
}); });
jFrame11Layout.createParallelGroup(javax.swing.GroupLayout
.Alignment.LEADING)
};
.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)
.addGroup(jFrame12Layout.createSequentialGroup() jLabel44.setText("Bill");
.addGroup(jFrame12Layout.createSequentialGroup()
.addContainerGap()
.addGap(216, 216, 216)
jLabel45.setText("Bill Number :");
});
} jComboBox2.setToolTipText("Month"); jButton22ActionPerformed(evt);
}); }
jComboBox3.setEditable(true); });
jRadioButton1ActionPerformed(evt); });
jLabel48.setText("Item Name :");
}
});
jTextField32.addActionListener(new jPanel5.setBorder(javax.swing.BorderFactory.createTitledBord
java.awt.event.ActionListener() { er("Bill :"));
.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)) });
.addGroup(jPanel5Layout.createSequentialGroup() .addGroup(jFrame13Layout.createParallelGroup(javax.swing.G
jButton25.setText("Back"); roupLayout.Alignment.LEADING)
.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(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)
.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) {
jFrame14Layout.setHorizontalGroup( .addComponent(jButton27)) };
jFrame14Layout.createParallelGroup(javax.swing.GroupLayout .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem
.Alignment.LEADING) ent.UNRELATED) public Class getColumnClass(int columnIndex) {
.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 }
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)
.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 [] {
.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
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))
.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");
}); .addComponent(jLabel60)
.addGroup(jFrame17Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.TRAILING, false) .addGap(41, 41, 41)
.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)
});
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacem .addGroup(jFrame17Layout.createParallelGroup(javax.swing.G
ent.UNRELATED) roupLayout.Alignment.LEADING)
);
.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()
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);
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
jFrame19Layout.createSequentialGroup() Short.MAX_VALUE)) },
jFrame19Layout.setVerticalGroup( jFrame20.getContentPane().setLayout(jFrame20Layout);
.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)
.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)
.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)
); 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() },
} .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)
.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))
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"); }
}
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() {
} }
jMenuItem6.setText("Rate");
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);
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
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");
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) {
pack(); }
} 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();
}
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);
} if(bp == JOptionPane.YES_OPTION){ }
} catch(Exception k)
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())
}
{ {
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+"';";
{ }
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();
{ { String md = jTextField24.getText();
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,"Error in } JOptionPane.showMessageDialog(this,"Error in
connectivity" ); connectivity");
} }
private void
} jButton15ActionPerformed(java.awt.event.ActionEvent evt) { }
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","");
{ model.removeRow(0); }
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);
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() ; {
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;
{ 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(); }
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+"';"; }
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");
}
private void
} try{ jButton27ActionPerformed(java.awt.event.ActionEvent evt) {
catch(Exception e) jFrame15.dispose();
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();
while(rs.next()) try{
} { int ll = model.getRowCount() ;
} }}
} catch(Exception e)
rs.close(); {}
stmt.close(); try {
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","");
} jFrame17.setVisible(true);
while(rs.next()) }
private void {
jButton29ActionPerformed(java.awt.event.ActionEvent evt) {
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");}
try{ } jFrame18.setVisible(true);
Class.forName("com.mysql.jdbc.Driver").newInstance(); }
} 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) {
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) }
{}
con.close(); jFrame21.dispose();
jFrame21.setVisible(true); rs.close(); }}
} stmt.close(); catch(Exception e)
con.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);
Mysql
item1
item2
item3
item4