java课程设计----图书馆管理系统(11)

2021-04-05 07:39

java课程设计----图书馆管理系统

}

}

}

public String getBookPress(){ }

public int getActionCode(){ }

public void okClicked() { }

//图书编号不为空,且价格为数值类型时 隐藏对话框 if(!this.txtID.getText().trim().equals("")){ } else

JOptionPane.showMessageDialog(f,"请设定图书编号!","提示",

RMATION_MESSAGE);

try{

Double.parseDouble(this.txtBookPrice.getText().trim()); }catch(Exception e){ }

this.actionCode=this.OK; this.setVisible(false);

JOptionPane.showMessageDialog(f,"价格非法!","提示",

RMATION_MESSAGE);

return this.actionCode;

return txtBookPress.getText().trim(); double result=Double.NEGATIVE_INFINITY; try{ }

return new Double(result);

result=Double.parseDouble(this.txtBookPrice.getText().trim()); result=Double.NEGATIVE_INFINITY; }catch(Exception e){

return ;

class SearchDialog extends JDialog implements ActionListener{

final int OK=1;

final int CANCEL=-1; final int CLOSE=0;

private int actionCode=CANCEL;

private JRadioButton radID=new JRadioButton(" 图书编号 "); private JTextField txtID=new JTextField();

private JRadioButton radBookName=new JRadioButton(" 图书名称 ");


java课程设计----图书馆管理系统(11).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:加盟计划2

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: