代码GUI类将记录添加到表中 [英] code GUI class to add record to table

查看:71
本文介绍了代码GUI类将记录添加到表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有人。我的程序从一个文件中读取,该文件包含有关员工的信息(ID,姓名,地址,薪水,HourlyRate等等)。然后,它将它们存储在一个对象数组中,并在GUI中显示信息,并在列表框中列出该ID,并在选择ID时显示有关该员工的相应信息。我有一些问题,但我会尝试一次解决1个而不是一次性发布所有问题。

我的第一个问题是我在一个名为EmployeeList的单独类中创建了一个添加员工按钮的初始方法,但我仍然对在GUI类中编写的内容感到困惑。我会发布相关代码。任何帮助都会非常感激,因为这是我在学期的最后一次任务,我的考试减少了我可以投入这项任务的时间。我有点紧张,因为我需要完成这个以通过该单位。谢谢。

解决方案

展开 | 选择 | Wrap | 行号


展开 | 选择 | Wrap | 行号


现在请忽略这篇文章......我的错误,


-blazed

Hey all. My program reads from a file which contains information about employees(ID, name, address, salary, HourlyRate, etc...). It then stores them in an array of objects and writes and displays the info in a GUI where the ID is listed in a listbox, and the corresponding info about the employee is displayed when an ID is selected. I have a few problems but I will try to solve 1 at a time rather than posting em all at once.
My 1st problem is that I''ve created an initial method for the add employee button in a seperate class called EmployeeList but I''m still alittle confused as what to write in the GUI class. I will post the relevant code. Any help would be much appreciated as this is my last assignment of the semester and I have exams which reduce the amount of time I can dedicate to this assignment.I''m a little nervy as I need to complete this to pass the unit. Thanks.

解决方案

Expand|Select|Wrap|Line Numbers


Expand|Select|Wrap|Line Numbers


Please ignore this post for now... my mistake,

-blazed


这篇关于代码GUI类将记录添加到表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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