第一范文网 - 专业文章范例文档资料分享平台

酒店管理系统实现代码

来源:用户分享 时间:2025/7/14 7:51:03 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

frame=new JFrame(\房态图\

Container contentPane=frame.getContentPane(); JPanel P1=new JPanel();

P1.setLayout(new GridLayout(3,5)); b1=new JButton(\单人间\ b2=new JButton(\单人间\ b3=new JButton(\单人间\ b4=new JButton(\单人间 \ b5=new JButton(\单人间\ b6=new JButton(\双人间\ b7=new JButton(\双人间\ b8=new JButton(\双人间\ b9=new JButton(\双人间\ b10=new JButton(\双人间\ b11=new JButton(\总统套房\ b12=new JButton(\总统套房\ b13=new JButton(\总统套房\ b1.setBackground(Color.yellow); b2.setBackground(Color.yellow); b3.setBackground(Color.yellow); b4.setBackground(Color.yellow); b5.setBackground(Color.yellow); b6.setBackground(Color.green); b7.setBackground(Color.green); b8.setBackground(Color.green); b9.setBackground(Color.green); b10.setBackground(Color.green); b11.setBackground(Color.pink); b12.setBackground(Color.pink); b13.setBackground(Color.pink); P1.add(b1); P1.add(b2); P1.add(b3); P1.add(b4); P1.add(b5); P1.add(b6); P1.add(b7); P1.add(b8); P1.add(b9); P1.add(b10); P1.add(b11); P1.add(b12); P1.add(b13);

tb.append(\房间总数:13\

tb.append(\当前占用:\ tb.append(\当前可供:\ P1.add(tb);

ActionListener al=new ActionListener(){ public void actionPerformed(ActionEvent e){ if(e.getActionCommand()==\单人间\ ta.setText(\ JFrame frame=new JFrame(\宾客信息\ JPanel p2=new JPanel(); Container cp=frame.getContentPane(); ta.append(\客户名 : \ ta.append(\房间单价 :150元/天 \ ta.append(\入住时间 : \ ta.append(\入住天数 : \ ta.append(\离开时间 : \ ta.append(\总金额 : \ p2.add(ta); p2.setBackground(Color.yellow); frame.setContentPane(p2); frame.pack(); frame.setVisible(true); } else if(e.getActionCommand()==\单人间\ ta.setText(\ JFrame frame=new JFrame(\宾客信息\ JPanel p2=new JPanel(); Container cp=frame.getContentPane(); ta.append(\客户名 : \ ta.append(\房间单价 :150元/天 \ ta.append(\入住时间 : \ ta.append(\入住天数 : \ ta.append(\离开时间 : \ ta.append(\总金额 : \ p2.add(ta); p2.setBackground(Color.yellow); frame.setContentPane(p2); frame.pack(); frame.setVisible(true); } else if(e.getActionCommand()==\单人间\ ta.setText(\ JFrame frame=new JFrame(\宾客信息\

JPanel p2=new JPanel();

Container cp=frame.getContentPane(); ta.append(\客户名 : \ ta.append(\房间单价 :150元/天 \ ta.append(\入住时间 : \ ta.append(\入住天数 : \ ta.append(\离开时间 : \ ta.append(\总金额 : \ p2.add(ta); p2.setBackground(Color.yellow); frame.setContentPane(p2); frame.pack(); frame.setVisible(true); }

else if(e.getActionCommand()==\单人间\ ta.setText(\ JFrame frame=new JFrame(\宾客信息\ JPanel p2=new JPanel();

Container cp=frame.getContentPane(); ta.append(\客户名 : \ ta.append(\房间单价 :150元/天 \ ta.append(\入住时间 : \ ta.append(\入住天数 : \ ta.append(\离开时间 : \ ta.append(\总金额 : \ p2.add(ta); p2.setBackground(Color.yellow); frame.setContentPane(p2); frame.pack(); frame.setVisible(true); }

else if(e.getActionCommand()==\单人间\ ta.setText(\ JFrame frame=new JFrame(\宾客信息\ JPanel p2=new JPanel();

Container cp=frame.getContentPane(); ta.append(\客户名 : \ ta.append(\房间单价 :150元/天 \ ta.append(\入住时间 : \ ta.append(\入住天数 : \ ta.append(\离开时间 : \ ta.append(\总金额 : \

p2.add(ta); p2.setBackground(Color.yellow); frame.setContentPane(p2); frame.pack(); frame.setVisible(true); }

else if(e.getActionCommand()==\双人间\ ta.setText(\ JFrame frame1=new JFrame(\宾客信息\ JPanel p2=new JPanel();

Container cp=frame.getContentPane(); ta.append(\客户名 : \ ta.append(\房间单价 :260元/天 \ ta.append(\入住时间 : \ ta.append(\入住天数 : \ ta.append(\离开时间 : \ ta.append(\总金额 : \ p2.add(ta); p2.setBackground(Color.green); frame1.setContentPane(p2); frame1.pack(); frame1.setVisible(true); }

else if(e.getActionCommand()==\双人间\ ta.setText(\ JFrame frame2=new JFrame(\宾客信息\ JPanel p2=new JPanel();

Container cp=frame.getContentPane(); ta.append(\客户名 : \ ta.append(\房间单价 :260元/天 \ ta.append(\入住时间 : \ ta.append(\入住天数 : \ ta.append(\离开时间 : \ ta.append(\总金额 : \ p2.add(ta); p2.setBackground(Color.green); frame2.setContentPane(p2); frame2.pack(); frame2.setVisible(true); }

else if(e.getActionCommand()==\双人间\

搜索更多关于: 酒店管理系统实现代码 的文档
酒店管理系统实现代码.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c3h34o1yal83ibqw7sinr_9.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top