【導(dǎo)讀】packageaa;import;import;import;import;import.*;import.*;import.*;import.*;import.*;StringDRIVER="";StringUSERNAME="sa";StringPASSWORD="123456";("藥房管理系統(tǒng)登錄");(100,100,300,200);(null);(false);(true);(getUserName());(getPassword());nameLabel=newJLabel("用戶名:");(font);(10,10,60,20);(nameLabel);passwdLabel=newJLabel("密碼:");(font);(10,50,60,20);(passwdLabel);loginBtn=newJButton("登錄");(font);(30,80,80,30);if(getPassword().getText().equals("123456")&&getUserName().getText().equals("admin")). MFrameframe=newMFrame();("登錄成功");if(getPassword().getText().equals("123456")&&getUserName().getText().equals("liuhao")). SFrameframe=newSFrame();("登錄成功");("登錄失敗");});(loginBtn);cancelBtn=newJButton("取消");(font);(130,80,80,30);(0);});(cancelBtn);password=newJPasswordField();(font);(80,50,150,20);returnpassword;userName=newJTextField();(80,10,150,20);(font);returnuserName;=frame;("管理界面");(500,500);this.setLayout(null);(false);(true);(font);(30,80,180,30);(ADDdBtn);ALTdBtn=newJButton("修改醫(yī)生信息");(font);(30,120,180,30);(ALTdBtn);DELdBtn=newJButton("刪除醫(yī)生信息");(font);(30,160,180,30);(DELdBtn);SERdBtn=newJButton("查詢醫(yī)生信息");(font);(30,200,180,30);(SERdBtn);ADDcBtn=newJButton("添加藥劑師信息");(font);(220,80,180,30);(ADDcBtn);ALTcBtn=newJButton("修改藥劑師信息");(font);(220,120,180,30);(ALTcBtn);DELcBtn=newJButton("刪除藥劑師信息");(font);(220,160,180,30);(DELcBtn);(font);(220,200,180,30);(SERcBtn);