- 博客(0)
- 资源 (4)
- 收藏
- 关注
java jdbc 学习 数据
bstract,break,byte,boolean,catch,case,class,char,continue,default,double,do,else,extends,false,final,float,for,finally,if,import,implements,int,interface,instanceof,long,length,native,new,null,package,private,protected,public,return,switch,synchronized,short,static,super,try,true,this,throw,throws,threadsafe,transient,void,while 。
2008-10-18
JDBC学习,java应用
JAVA。你的好帮手,原代码mport javax.swing.*;
import java.awt.*;
import java.net.*;
public class login extends JWindow{
public login(){
JFrame name = new JFrame("网络至尊系统——用户登录");
name.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Dimension xianshiqi = Toolkit.getDefaultToolkit().getScreenSize();
Dimension chanke = name.getSize();
int x =xianshiqi.width;
int y =xianshiqi.height;
name.getContentPane().setLayout(null);
Container hname = name.getContentPane();//获取容器
/***********上面板开始*******************/
URL tupin1 = login.class.getResource("login1.jpg");//图片地址
Icon icon1= new ImageIcon(tupin1);//实列Icon
JLabel bq1 = new JLabel(icon1);//向标签中加入图片
hname.add(bq1);//将标签加到容器
/**********下面板开始********************/
//JButton dl =new JButton("登录");
//JButton tz =new JButton("退出");
//在此加入登录和退出事件
/**********左面板开始********************/
//JLabel bq2 = new JLabel();
//URL tupin2 = login.class.getResource("login2.jpg");
//Icon icon2= new ImageIcon(tupin2);
//bq2.setIcon(icon2);
//hname.add(bq2);
/*hname.add(you,BorderLayout.EAST);
JTextField tf = new JTextField();
zuo.add(tf);
hname.add(tf);
*/
name.setSize(400,300);
name.setLocation(x/2-200,y/2-150);
name.setVisible(true);
name.setResizable(false);
}
public static void main(String [] args){
login log = new login();
}
}
2008-10-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人