Java中的库存程序 [英] Inventory program in Java

查看:166
本文介绍了Java中的库存程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试添加删除按钮,保存和搜索按钮。我试图打电话给我的老师,他绝对没有帮助,我已阅读并重读文本,但仍然不知道发生了什么.........我已经添加了添加按钮,但现在我是卡住。有没有一个简单的方法来完成这个?


请帮助


?截止日期:第7天[个人]论坛

?修改库存程序以在GUI上包含添加按钮,删除按钮和修改按钮。这些按钮应该允许用户对项目名称,库存单位数量和每个单位的价格执行相应的操作。添加到库存的项目应该比上一个项目的项目编号多一个。 br />
?向GUI添加一个Save按钮,将库存保存到C:\ data /\\inventory.dat文件。

?如有必要,使用异常处理来创建目录和文件。

?向GUI添加搜索按钮,允许用户按产品名称搜索清单中的项目。如果找不到产品,GUI应显示相应的消息。如果找到产品,GUI应该在

GUI中显示该产品的信息。 ?作为附件发布

I am trying to add the Delete button, save and search buttons. I have tried to call my teacher and he is absolutly no help and i have read and reread the text but still have no idea what is going on.........I have the added the add button but now i am stuck. Is there a simple way in completeing this??

Please help

? Due Date: Day 7 [Individual] forum
? Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit.An item added to the inventory should have an item number one more than the previous last item.
? Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file.
? Use exception handling to create the directory and file if necessary.
? Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product?s information in the
GUI. ? Post as an attachment

推荐答案

您需要发布到目前为止的代码 - 贡献者可以对您的问题发表评论
you need to post the code you have so far - contributers can then comment on your problems


我完全迷失在这堂课中,我不知道这里发生了什么。我的老师没有帮助,我无法弄明白这一点来挽救我的生命。我需要添加一个删除按钮,一个搜索按钮,并能够保存它,以便在关闭它并重新打开后添加的项目将显示出来。


任何帮助都会受到极大关注

I am totally lost in this class and i have no clue what is going on here. My teacher is no help and i cannot figure this out to save my life. I need to add a Delete button, a search button and be able to save it so that the added items will show up after i close it and reopen it.

Any help would be greatly appriciated

展开 | 选择 | Wrap | 行号


这里是该代码的另一部分

Here is the other part of that code

展开 | 选择 | Wrap | 行号


这篇关于Java中的库存程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆