publicgongnengJF(){initComponents();if(MessagePost.getUserPost().equals("职工")){this.jMenuItem2.setEnabled(false);里面initComponents什么意思setEnabled是什么?privatevoid...
public gongnengJF() {
initComponents();
if(MessagePost.getUserPost().equals("职工")){
this.jMenuItem2.setEnabled(false);
里面initComponents什么意思setEnabled是什么?
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
new pingcebumen().setVisible(true);
this.setVisible(false);
}
private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
String newpwd=javax.swing.JOptionPane.showInputDialog(rootPane, "输入新密码");
String sql="update renyuanlist password ="+newpwd+"where username ='"+MessagePost.getUserName()+"'";
Database db = new Database();
db.executeDML(sql);
}
private void jMenuItem1MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
new ziliao().setVisible(true);
String newpwd = null;
String sql="select * from renyuanlist where password ="+newpwd+"where username ='"+MessagePost.getUserName()+"'";
}
private void jMenu1MouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
new ziliao().setVisible(true);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
MessagePost.setUserPost("职工");
new gongnengJF().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JMenu jMenu1;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JMenuItem jMenuItem2;
private javax.swing.JMenuItem jMenuItem3;
private javax.swing.JMenuItem jMenuItem4;
每一次声明的都是什么? 鼠标的什么动作么? 这段实在干什么
最后这么多 私有的是什么意思? SWIN是什么
private void fanhuidenglujBMouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
new gongnengJF().setVisible(true);
this.setVisible(false);
这句里 new创建的这个对象 后面 设为可见 下面有调用什么的 是再干什么?
展开