?? asstostudent.java
字號:
/*
* Stu.java
*
* Created on 2007年11月20日, 下午8:09
*/
package javaapplication1;
import javaapplication1.Stu2;
/**
*
* @author mis05
*/
public class Asstostudent extends javax.swing.JPanel {
/** Creates new form Stu */
public Asstostudent() {
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 ">//GEN-BEGIN:initComponents
private void initComponents() {
jButton1 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton1.setText("\u6dfb\u52a0\u5b66\u751f");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
add(evt);
}
});
jButton3.setText("\u5220\u9664\u5b66\u751f");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
delete(evt);
}
});
jButton2.setText("\u4fee\u6539\u5b66\u751f");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
update(evt);
}
});
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(76, 76, 76)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(jButton2)
.add(jButton3)
.add(jButton1))
.addContainerGap(243, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(58, 58, 58)
.add(jButton1)
.add(25, 25, 25)
.add(jButton3)
.add(29, 29, 29)
.add(jButton2)
.addContainerGap(119, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
private void update(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_update
new Asstostudent3().setVisible(true);// TODO add your handling code here:
}//GEN-LAST:event_update
private void delete(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delete
new Asstostudent2().setVisible(true);// TODO add your handling code here:
}//GEN-LAST:event_delete
private void add(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_add
new Asstostudent1().setVisible(true);// TODO add your handling code here:
}//GEN-LAST:event_add
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
// End of variables declaration//GEN-END:variables
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -