5 Replies - 754 Views - Last Post: 19 October 2011 - 05:49 PM Rate Topic: -----

#1 EPTRemain  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 81
  • Joined: 25-May 11

Human Resources GUI

Posted 19 October 2011 - 02:48 AM

For my final assignment I have to design a human resources gui that is able to create/delete departments and add/delete employee's details aswell as view them.

I have to atleast make use of these 6 components:
  • JTextField
  • JPanel
  • JButoon
  • JRadioButton
  • JComboBox
  • JFrame


I feel like I know how to do this but my brain is stuck.

Am I gonna have to create different panels (or frames) for each function? [Delete Department, Add Department, etc]

If anyone could help me with some pseudocode to serve as guidance. It would be of great assistance.

King Regards.

Is This A Good Question/Topic? 0
  • +

Replies To: Human Resources GUI

#2 CasiOo  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 1400
  • View blog
  • Posts: 3,108
  • Joined: 05-April 11

Re: Human Resources GUI

Posted 19 October 2011 - 03:07 AM

You can start by making mock ups for all of your possible views.

Then you do a mock up test with another student, to find out how people will actually use your application, what buttons they will click etc.. You can basically ask another student: "What would you do if you were to add a new employee", and then follow all of his steps, and see if they differ from your expectations.

When you know how your gui should look, then you can start writing the code for it
Was This Post Helpful? 2
  • +
  • -

#3 n8schatten  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 145
  • View blog
  • Posts: 263
  • Joined: 07-December 10

Re: Human Resources GUI

Posted 19 October 2011 - 03:11 AM

If you don't know what you want to do, pseudo-code won't help much.

For your inspiration:
With the description you gave, I would most probable go for one JFrame containing some kind of list (maybe JList) of departments and a second list containing the employees. (JFrame: check, JPanel: check)
To create a new employee or department create a button for either of these and open a new JDialog containing the required settings. (JComboBox: check, JTextField: check, JRadioButton: check, JButton: check)
If you do not want to use JLists, you could also use a JTabbedPane.
Was This Post Helpful? 1
  • +
  • -

#4 Fuzzyness  Icon User is offline

  • Comp Sci Student
  • member icon

Reputation: 669
  • View blog
  • Posts: 2,438
  • Joined: 06-March 09

Re: Human Resources GUI

Posted 19 October 2011 - 07:14 AM

I would actually suggest looking into a JTabbedPane. Basically you created the JtabbedPane, and then you add it to the contentPane, then you can add the JPanels to the JTabbedPane and it will give you the tabs. It separates the code nicely and is really organized and is easy to work with.

You can reference here and here for some example on JTabbedPane.

Then in each panel just create the appropriate text fields you need to for the task etc.

If you would like an example of a JTabbedPane let me know and I can throw something together, but those 2 links should do justice.
Was This Post Helpful? 1
  • +
  • -

#5 EPTRemain  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 81
  • Joined: 25-May 11

Re: Human Resources GUI

Posted 19 October 2011 - 03:58 PM

The JTabbedPane idea looks good!
Thanks guys! :)
Was This Post Helpful? 0
  • +
  • -

#6 Fuzzyness  Icon User is offline

  • Comp Sci Student
  • member icon

Reputation: 669
  • View blog
  • Posts: 2,438
  • Joined: 06-March 09

Re: Human Resources GUI

Posted 19 October 2011 - 05:49 PM

Glad it was useful. Feel free to post any questions about it than you may not understand etc.

Good luck!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1