下载此文档

java登陆界面(java login interface).doc


文档分类:IT计算机 | 页数:约12页 举报非法文档有奖
1/12
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/12 下载此文档
文档列表 文档介绍
java登陆界面(Java login interface)
import . ';
import . ';
import .
import .
import .
import .
import . ';
class myexception extends exception {
string id;
myexception (string str) (public
id = 0.
}
public string tostring () {
return id;
}
}
public class access _ port extends jframe {
lab1 label, lab2, lab3.
textfield f1.
jpasswordfield f2.
jradiobutton button00, button01.
public int i = 1.
public int (q = 2);
public access _ port () {
/ / / / / / / / (登陆界面");
/ / / / / / / / lab1 = new label ("欢迎登陆!").
f1 = new textfield (21).
f2 = new jpasswordfield (15).
lab2 = new label ("账号");
lab3 = new label ("密码");
button00 = new jradiobutton (管理员", null, true);
button01 = new jradiobutton (用户"(false).
button b1 = new button ("确认");
button b2 = new button ("取消");
setlayout (new flowlayout ());
setlocation (558309).
setsize (250, 150).
setvisible (true).
(false).
/ / add (lab1).
add (lab2).
add (f1).
add (lab3).
add (f2).
add (button00).
add (button01).
add (b1).
add (b2).
(b1).
(new) ());
addwindowlistener (new windowadapter () {
public void windowclosing (windowevent (e)
states ().
}
(');
}
class b1 implements actionlistener {
public void actionperformed (actionevent (e)
string s1 = ().
string s2 = ().
m1 = new string [], string [20];
string = new string []) [20];
string = new string [u1] [20];
string = new string []) [20];
int i = 0;
int k = 0.
int flag = 1.
/ / / / / / / / / / / / / / 连接数据库
string drivername = "";
string dburl = "jdbc: sqlserver: / / localhost no.; databasename = renrendb";
string username = "yanshao";
string userpwd = "xxj369369";
try {
(drivername).
connection dbconn = (dburl, username,

java登陆界面(java login interface) 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数12
  • 收藏数0 收藏
  • 顶次数0
  • 上传人dreamclb
  • 文件大小15 KB
  • 时间2018-10-18