91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 966KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2024-01-28
  • 語言: Java
  • 標簽:

資源簡介

JAVA源代碼及JAR包,可運行 運行本程序之前,請先配置數據庫文件: 用記事本程序打開目錄下的 mySQL/mysql.properties,進行配置,然后即可運行管理員的初始姓名和密碼分別是 姓名: admin 密碼: 123456

資源截圖

代碼片段和文件信息

import?com.niit.jdbc.*;
import?java.awt.*;
import?java.awt.event.*;
import?javax.swing.*;



/**
?*?修改管理員的用戶名和密碼
?*?@author?Administrator
?*
?*/
public?class?AdminModule?{
Jframe?jf?=?new?Jframe(“修改管理員賬號和密碼“);
private?JLabel?nameLabel?=?new?JLabel(“請輸入新的賬號:“);??????????????
private?JLabel?oldpassLabel?=?new?JLabel(“請輸入舊的密碼:“);?
private?JLabel?newpassLabel?=?new?JLabel(“請輸入新的密碼:“);
private?JLabel?wordLabel?=?new?JLabel(“再輸入一遍密碼:“);??????????????????????????????????????????????????????????????????//用戶密碼標簽
private?JTextField?nameFld?=?new?JTextField(20);?????????????????
private?JPasswordField?oldpassFld?=?new?JPasswordField(20);
private?JPasswordField?newpassFld?=?new?JPasswordField(20);
private?JPasswordField?wordFld?=?new?JPasswordField(20);
private?JButton?handleBtn?=?new?JButton(“提交“);
public?void?init()
{?????????????????????????????????????????????????????????????????//使Jframe在屏幕中央顯示
Dimension?d?=?Toolkit.getDefaultToolkit().getScreenSize();????//獲取屏幕的大小
int?x?=?(int)?((d.getWidth()-400)/2);?????????????????????????//獲取Jframe框起點的x坐標
int?y?=?(int)?((d.getHeight()-300)/2);????????????????????????//獲取Jframe框起點的y坐標
JPanel?topPanel?=?new?JPanel();
JPanel?centerPanel?=?new?JPanel();
JPanel?cenPanel?=?new?JPanel();
JPanel?terPanel?=?new?JPanel();
JPanel?bottomPanel?=?new?JPanel();
topPanel.add(nameLabel);
topPanel.add(nameFld);
centerPanel.add(oldpassLabel);
centerPanel.add(oldpassFld);
terPanel.add(newpassLabel);
terPanel.add(newpassFld);
cenPanel.add(wordLabel);
cenPanel.add(wordFld);
bottomPanel.add(handleBtn);
Box?box?=?Box.createVerticalBox();
box.add(topPanel);
box.add(centerPanel);
box.add(terPanel);
box.add(cenPanel);
box.add(bottomPanel);
jf.setBounds(xy400300);
jf.add(box);
jf.setVisible(true);
jf.setResizable(false);
????????????????????????????????????????????????????????????
handleBtn.addActionListener(new?ActionListener(){
public?void?actionPerformed(ActionEvent?e)
{??????????????????????????????????????????????????????
String?username?=?nameFld.getText();
String?password?=?oldpassFld.getText();
String?pass?=?newpassFld.getText();
String?word?=?wordFld.getText();
if(new?UserDao().Check_NAP(password))
{
if(pass.equals(word))
{
new?UserDao().insert_NAP(usernamepasspassword);
JOptionPane.showMessageDialog(jf?“修改成功“);
jf.setVisible(false);
}
else
{
JOptionPane.showMessageDialog(jf?“密碼不一致,請重新輸入密碼“);
newpassFld.setText(““);
wordFld.setText(““);

}
}
else
{
JOptionPane.showMessageDialog(jf?“舊密碼不正確,請重新輸入密碼“);
oldpassFld.setText(““);
}?

}
});
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????????99??2010-09-23?14:07??記賬本\mySQL\mysql.properties

?????文件????????234??2010-10-06?10:40??記賬本\readme.txt

?????文件????????323??2010-09-15?11:22??記賬本\源代碼\.classpath

?????文件????????385??2010-09-15?11:19??記賬本\源代碼\.project

?????文件???????1800??2010-09-23?08:59??記賬本\源代碼\bin\AdminModule$1.class

?????文件???????2878??2010-09-23?08:59??記賬本\源代碼\bin\AdminModule.class

?????文件???????6620??2010-09-30?08:27??記賬本\源代碼\bin\com\niit\jdbc\AbstractDao.class

?????文件???????2105??2010-09-22?15:13??記賬本\源代碼\bin\com\niit\jdbc\CreateTableDao.class

?????文件???????2787??2010-09-22?12:49??記賬本\源代碼\bin\com\niit\jdbc\ItemDao.class

?????文件???????1776??2010-09-21?17:43??記賬本\源代碼\bin\com\niit\jdbc\TypeDao.class

?????文件???????3490??2010-09-23?08:54??記賬本\源代碼\bin\com\niit\jdbc\UserDao.class

?????文件???????1184??2010-09-21?19:11??記賬本\源代碼\bin\DeleteModule$1.class

?????文件???????3055??2010-09-21?19:11??記賬本\源代碼\bin\DeleteModule.class

?????文件???????1786??2010-09-21?16:05??記賬本\源代碼\bin\InputModule$1.class

?????文件???????2693??2010-09-21?16:05??記賬本\源代碼\bin\InputModule.class

?????文件???????2133??2010-09-26?14:01??記賬本\源代碼\bin\LoginModule$1.class

?????文件???????4014??2010-09-26?14:01??記賬本\源代碼\bin\LoginModule.class

?????文件???????1555??2010-09-27?19:09??記賬本\源代碼\bin\Modify$1.class

?????文件???????1555??2010-09-27?19:09??記賬本\源代碼\bin\Modify$2.class

?????文件???????2129??2010-09-27?19:09??記賬本\源代碼\bin\Modify$ExceListener_day.class

?????文件???????2137??2010-09-27?19:09??記賬本\源代碼\bin\Modify$ExceListener_month.class

?????文件???????2118??2010-09-27?19:09??記賬本\源代碼\bin\Modify$ExceListener_year.class

?????文件???????4050??2010-09-27?19:09??記賬本\源代碼\bin\Modify.class

?????文件???????1848??2010-09-21?20:15??記賬本\源代碼\bin\ModifyModule$1.class

?????文件???????3055??2010-09-21?20:15??記賬本\源代碼\bin\ModifyModule.class

?????文件???????2499??2010-09-27?19:11??記賬本\源代碼\bin\Query$ExceListener_day.class

?????文件???????2507??2010-09-27?19:11??記賬本\源代碼\bin\Query$ExceListener_month.class

?????文件???????2488??2010-09-27?19:11??記賬本\源代碼\bin\Query$ExceListener_year.class

?????文件???????4076??2010-09-27?19:11??記賬本\源代碼\bin\Query.class

?????文件???????1217??2010-09-21?20:37??記賬本\源代碼\bin\Record$1.class

............此處省略54個文件信息

評論

共有 條評論

相關資源