Documente Academic
Documente Profesional
Documente Cultură
By – Kushal Lunia
C O N T E N T S
2. Objective & Scope of the Project ................. Error! Bookmark not defined.
try{
for(int i=0;i<=100;i++){
Thread.sleep(30);
splash.pb.setValue(i);
if(i==100){
splash.dispose();
new login().setVisible(true);
}
}
}
catch (Exception e){
}
LOGIN FRAME :-
FOR LOGIN :-
String Uid=t1.getText();
String pwd=new String(t2.getPassword());
if(Uid.equals("abc")&& pwd.equals("123"))
{ new claim().setVisible(true);
dispose();
JOptionPane.showMessageDialog(null,"Sign in Successful");}
if(Uid.equals("kushal")&& pwd.equals("123"))
{ new control().setVisible(true);
dispose();}
if(Uid.equals("price")&& pwd.equals("p"))
{ new price().setVisible(true);
dispose();
Claim Frame:-
Class.forName("com.mysql.jdbc.Driver");
Connection con= (Connection)
DriverManager.getConnection("jdbc:mysql://localhost/kush","root","123");
Check frame :-
FOR SHOW :-
Class.forName("java.sql.DriverManager");
Connection con= (Connection)
DriverManager.getConnection("jdbc:mysql://localhost/kush","root","123");
Statement st=(Statement) con.createStatement();
if (py==0)
{
String qr= "select s_no,cust_name,mode_no,date,foc,cust_no,pdate,status
FROM battery order by s_no ";
ResultSet rs = st.executeQuery(qr);
String s,c,m,d,f,n,p,lk;
Update frame :-
FOR UPDATE :-
int a=Integer.parseInt(t1.getText());
String st=(t7.getText());
try {
Class.forName("com.mysql.jdbc.Driver");
Connection con= (Connection)
DriverManager.getConnection("jdbc:mysql://localhost/kush","root","123");
Statement stmt=con.createStatement();
FOR SHOW :-
try {
Class.forName("com.mysql.jdbc.Driver");
Connection con= (Connection)
DriverManager.getConnection("jdbc:mysql://localhost/kush","root",
"123");
Statement stmt=con.createStatement();
String qr= ("select count(status) from battery where status like
'%sent%' and date=(curdate());");
ResultSet rs = stmt.executeQuery(qr);
rs.next();
String f= rs.getString("count(status)");
t1.setText(""+f);