Escolar Documentos
Profissional Documentos
Cultura Documentos
*;
import javax.swing.JFrame ;
import javax.swing.JLabel ;
import javax.swing.JTextField ;
import javax.swing.JButton ;
import javax.swing.JOptionPane ;
import java.awt.*;
import java.awt.event.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.*;
//You implement an action listener to define what should be done when an user performs certain
operation.
Connection con;
Statement st;
ResultSet rs;
private Chestionar c;
setVisible(true);
setSize(1000 ,1000 );
setLocationRelativeTo(null);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setTitle ("Chestionar");
setLayout(null);
setResizable(false);
add(q1);
add(a1);
add(q2);
add(a2);
add(q3);
add(a3);
add(q4);
add(q5);
add(q6);
add(q7);
add(a7);
add(q8);
add(q9);
add(a9);
add(q10);
add(a10);
add(q11);
add(q12);
add(b1);
add(b2);
b1.addActionListener(this);
b2.addActionListener(this);
@Override
if (e.getSource() == b1) {
int input = JOptionPane.showConfirmDialog(null,"Datele sunt corecte?", "Confirma",
JOptionPane.YES_NO_OPTION);
if (input == 0)
else{
while (input == 0)
c.Chestionar();
c.setVisible(true);
else
if (e.getSource () == b2){}
System.exit(0);