Académique Documents
Professionnel Documents
Culture Documents
CONTROLS USED
{ new frame2().setVisible(true);
this.setVisible(false);
}
SIGN UP
CONTORLS USED
String pd=p1.getText();
try
Class.forName("java.sql.DriverManager");
Connection
con=(Connection)DriverManager.getConnection("jdbc:mysql://localho
st:3306/project","root","123");
Statement st=(Statement)con.createStatement();
con.close();
st.close();
catch(Exception e)
JOptionPane.showMessageDialog(this, e.getMessage());
new frame4().setVisible(true);
this.setVisible(false);
}
CODING FOR SKIP:
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
new frame3().setVisible(true);
LOG IN
CONTROLS USED
CODING FOR LOG IN:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String name=t1.getText();
Try
{ Class.forName("java.sql.Driver");
Connection
con=(Connection)DriverManager.getConnection("jdbc:mysql://local
host:3306/project","root","123");
Statement st=(Statement)con.createStatement();
ResultSet rs=st.executeQuery(q);
while(rs.next())
{ String us=rs.getString("user");
String pwd=rs.getString("password");
if((name.equals(us))&&(pword.equals(pwd)))
{ new frame4().setVisible(true);
this.setVisible(false);
con.close();
st.close();
catch(Exception e)
{ JOptionPane.showMessageDialog(this, e.getMessage());
}
GENERAL KNOWLEDGE
CONTROLS USED
CODING FOR AMAZING PLACES:
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
new frame5().setVisible(true);
this.setVisible(false);
this.setVisible(false);
this.setVisible(false);
this.setVisible(false);
this.setVisible(false);
}
AMAZING PLACES
CONTORLS USED
CODING FOR MORE:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
new frame6().setVisible(true);
this.setVisible(false);
CONTROLS USED
CODING FOR <- :
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
new frame4().setVisible(true);
this.setVisible(false);
}
FOOD AND CULTURE
CONTROLS USED
}
CONTORLS USED
new frame4().setVisible(true);
this.setVisible(false);
}
SPORTS
CONTROLS USED
CONTROLS USED
this.setVisible(false);
}
PSHYCOLOGY
CONTROLS USED
this.setVisible(false);
}
CONTROLS USED
this.setVisible(false);
}
CONTROLS USED
CODING FOR CONTINUE:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
if(r1.isSelected())
new frame14().setVisible(true);
if(r2.isSelected())
new frame16().setVisible(true);
if(r3.isSelected())
new frame18().setVisible(true);
if(r4.isSelected())
new frame20().setVisible(true);
}
WORLD FLAG QUIZ
CONTROLS USED
CODING FOR SCORE:
int a=0, b=0, c=0;
a=10;
else
a=0;
if(l3.isSelected())
b=10;
else
b=0;
if(g1.isSelected())
c=10;
else
c=0;
int marks=a+b+c;
t14.setText(""+marks);
frame15.t15.setText(""+score14);
this.setVisible(false);
CONTROLS USED
CODING FOR SCORE:
int a=0, b=0,score;
if (i3.isSelected())
a+=10;
if(l1.isSelected())
a+=10;
if(p2.isSelected())
a+=10;
b=Integer.parseInt(t15.getText());
score=a+b;
t15.setText(" "+score);
new frame22().setVisible(true);
frame22.t22.setText(""+score);
}
AIRLINE LOGO QUIZ
CONTROLS USED
CODING FOR SCORE:
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
int a,b=0;
if (c1.isSelected())
a=10;
else
a=0;
if(s4.isSelected())
b=10;
else
b=0;
t16.setText(""+total);
int total16=Integer.parseInt(t16.getText());
new frame17().setVisible(true);
frame17.t17.setText(""+total16);
this.setVisible(false);
}
CONTROLS USED
c=Integer.parseInt(t17.getText();
if (k2.isSelected())
a=10;
else
a=0;
if(v4.isSelected())
b=10;
else
b=0;
total=(a+b);
t17.setText(" "+(total+c));
new frame22().setVisible(true);
frame22.t22.setText(""+(total+c));
}
FAMOUS INVENTORS QUIZ
CONTROLS USED
CODING FOR SCORE:
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
int a,b=0;
if (f3.isSelected())
a=10;
else
a=0;
if(m3.isSelected())
b=10;
else
b=0;
t18.setText(""+total);
int total18=Integer.parseInt(t18.getText());
new frame19().setVisible(true);
frame19.t19.setText(""+total18);
this.setVisible(false);
}
CONTROLS USED
int total=0,c;
int total=0;
if (n1.isSelected())
a=10;
else
a=0;
if(e1.isSelected())
b=10;
else
b=0;
total=(a+b);
c=Integer.parseInt(t19.getText());
t19.setText(" "+(total+c));
frame22.t22.setText(""+(total+c));
this.setVisible(false);
}
SCIENCE AND FIELDS OF STUDY
CONTROLS USED
CODING FOR SCORE:
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
int a,b=0;
if (a4.isSelected())
a=10;
else
a=0;
if(c1.isSelected())
b=10;
else
b=0;
total= a+b;
t20.setText(""+total);
int total20=Integer.parseInt(t20.getText());
new frame21().setVisible(true);
frame21.t21.setText(""+total20);
this.setVisible(false);
}
CONTORLS USED
CODING FOR SCORE:
int total=0;
if (h4.isSelected())
a=10;
else
a=0;
if(e1.isSelected())
b=10;
else
b=0;
c=Integer.parseInt(t21.getText());
total=(a+b);
t21.setText(" "+(total+c));
new frame22().setVisible(true);
frame22.t22.setText(""+(total+c));
}
FINAL SCORE
CONTROLS USED
String sfr15=fr15.t14.getText();
t22.setText(sfr15);
}
LOGIN:
STRUCTURE
RECORDS IN TABLE
SIGN UP:
STRUCTURE
RECORDS IN TABLE