Documentos de Académico
Documentos de Profesional
Documentos de Cultura
java
Frame Preview
Source Code
import java.sql.*;
import javax.swing.JOptionPane;
try{
// establishing connection
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/service_
provider","root","1234");
// connection succesfully established
// now getting values from desired feilds which user has entered
ResultSet rs = st.executeQuery();
if(rs.next())
{
new welcome1().setVisible(true);
this.setVisible(false);
}
else
JOptionPane.showMessageDialog(null,"YOU HAVE ENTERED
WRONG USERNAME AND PASSWORD");
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Sorry you have error in
connectivity");
}
}
}
new login().setVisible(true);
this.setVisible(false);
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Sorry you have error in
connectivity");
}
}
}
Mainmenu.java
Frame Preview
Source Code
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Sorry you have error in connectivity");
}
}
}
}
}
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Sorry you have error in connectivity");
}
}
}
debenture buy.java
Frame Preview
Source Code
import java.sql.*;
import javax.swing.JOptionPane;
}
}
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Sorry you have error in connectivity");
}
}
}
about us.java
Frame Preview
Source Code
while(rs.next()){
String a = rs.getString(1);
String b = rs.getString(2);
String c = rs.getString(3);
String d = rs.getString(4);
String e = rs.getString(5);
model.addRow(new Object[]{a,b,c,d,e});
}
jTable1.setModel(model);
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Sorry you have error in connectivity");
}
}
catch(Exception e){
JOptionPane.showMessageDialog(null,"Sorry you have error in connectivity");
}
}