📄 baidyanath.txt
字号:
/*
* studentadd.java
*
* Created on May 5, 2007, 6:01 PM
*/
package GUI;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.swing.ComboBoxModel;
import oracle.sql.DATE;
/**
*
* @author Saurabh
*/
public class studentadd extends javax.swing.JFrame {
/** Creates new form studentadd */
public studentadd() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
jpanel = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
fatheredu = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
name = new javax.swing.JEditorPane();
jScrollPane2 = new javax.swing.JScrollPane();
CLASS = new javax.swing.JEditorPane();
jScrollPane3 = new javax.swing.JScrollPane();
section = new javax.swing.JEditorPane();
jScrollPane4 = new javax.swing.JScrollPane();
AGE = new javax.swing.JEditorPane();
jScrollPane5 = new javax.swing.JScrollPane();
ROLLNO = new javax.swing.JEditorPane();
jScrollPane6 = new javax.swing.JScrollPane();
FATHERNAME = new javax.swing.JEditorPane();
fathereducation = new javax.swing.JComboBox();
jScrollPane7 = new javax.swing.JScrollPane();
MOTHERNAME = new javax.swing.JEditorPane();
FATHEROCUUPATIOn = new javax.swing.JComboBox();
jScrollPane8 = new javax.swing.JScrollPane();
previousschool = new javax.swing.JEditorPane();
jLabel13 = new javax.swing.JLabel();
jLabel18 = new javax.swing.JLabel();
jScrollPane9 = new javax.swing.JScrollPane();
city = new javax.swing.JEditorPane();
jLabel19 = new javax.swing.JLabel();
jScrollPane10 = new javax.swing.JScrollPane();
pincode = new javax.swing.JEditorPane();
jLabel20 = new javax.swing.JLabel();
jScrollPane11 = new javax.swing.JScrollPane();
plot = new javax.swing.JEditorPane();
done = new javax.swing.JButton();
back = new javax.swing.JButton();
mothereducation = new javax.swing.JComboBox();
MOTHEROCUUPATIOn1 = new javax.swing.JComboBox();
month = new javax.swing.JComboBox();
day = new javax.swing.JComboBox();
year = new javax.swing.JComboBox();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("ADD RECORDS");
jpanel.setBackground(new java.awt.Color(232, 231, 231));
jpanel.setFont(new java.awt.Font("Book Antiqua", 1, 12));
jpanel.setMaximumSize(new java.awt.Dimension(0, 32767));
jLabel1.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 12));
jLabel1.setText("NAME ");
jLabel2.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel2.setText("CLASS");
jLabel3.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel3.setText(" AGE");
jLabel4.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel4.setText("Roll No");
jLabel5.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel5.setText("Father Name");
jLabel6.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel6.setText("Mother Name");
jLabel7.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel7.setText("Father Occupation");
jLabel8.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel8.setText("Mother Occupation");
fatheredu.setFont(new java.awt.Font("Book Antiqua", 1, 14));
fatheredu.setText("Father Education");
jLabel10.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel10.setText("Mother Education");
jLabel11.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel11.setText("Previous School");
jLabel12.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel12.setText("Section");
jLabel14.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel14.setText("Birthday");
jLabel15.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel15.setText("Month");
jLabel16.setFont(new java.awt.Font("Book Antiqua", 1, 14));
jLabel16.setText("Day");
jLabel17.setFont(new java.awt.Font("Book Antiqua", 1, 12));
jLabel17.setText("Year");
jScrollPane1.setViewportView(name);
jScrollPane2.setViewportView(CLASS);
jScrollPane3.setViewportView(section);
jScrollPane4.setViewportView(AGE);
jScrollPane5.setViewportView(ROLLNO);
jScrollPane6.setViewportView(FATHERNAME);
fathereducation.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Matric", "Intermiate", "Graduate", "PostaGraduate" }));
jScrollPane7.setViewportView(MOTHERNAME);
FATHEROCUUPATIOn.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Businesman", "Govt. Employee", "Engineer", "Doctor" }));
jScrollPane8.setViewportView(previousschool);
jLabel13.setText("ADDRESS");
jLabel18.setText("CITY");
jScrollPane9.setViewportView(city);
jLabel19.setText("Pincode");
jScrollPane10.setViewportView(pincode);
jLabel20.setText("Plot");
jScrollPane11.setViewportView(plot);
done.setText("DONE");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -