我应该怎样做我的DBMS??
学完了数据库课程设计,老师让设计自己的DBMS,实在是没思路啊,打算用java写,弄了一节课就弄出来了一个极其丑陋的登陆界面,存下来
--------------------------把代码存下来-------------------------------
package com.john.display;
import java.awt.*;
import javax.swing.JLabel;
public class Login {
private Frame frame;
private Panel mainer;
private Panel bottomer;
private Panel uper;
private Panel downer;
public void init(){
frame = new Frame("登陆");
mainer = new Panel(new BorderLayout());
uper = new Panel(new FlowLayout(FlowLayout.CENTER,5,3));
downer = new Panel(new FlowLayout(FlowLayout.CENTER, 5,3));
bottomer = new Panel(new FlowLayout(FlowLayout.CENTER, 5, 3));
JLabel yonghuming = new JLabel("用户名:");
TextField yonghumingi = new TextField(15);
uper.add(yonghuming);
uper.add(yonghumingi);
JLabel mima = new JLabel("密码:");
TextField mimai = new TextField(15);
downer.add(mima);
downer.add(mimai);
mainer.add(uper,BorderLayout.NORTH);
mainer.add(downer,BorderLayout.CENTER);
Button queren = new Button("确认");
Button quxiao = new Button("取消");
bottomer.add(queren);
bottomer.add(quxiao);
frame.add(mainer,BorderLayout.CENTER);
frame.add(bottomer,BorderLayout.SOUTH);
frame.setSize(300, 200);
frame.setLocation(500, 300);
frame.setVisible(true);
frame.pack();
}
public static void main(String args[]){
new Login().init();
}
}
做过DBMS的大神指教一下哦!我的DBMS,加油!!!