Friday, 23 May 2014

Changes

In initialiseBoxes()
for(int box=0; box<sunBlindsLevels.length; box++)
turned into
for(int box=0; box<4; box++)
because the first one just doesn't make sense anymore. Sure it works the same but 4 is more to the point.

New methods

  • removeBoxValues() has been made to removeAllItems from the ComboBoxes so that I could initialize them again.
  • instructions() 


Changes Made To Reset Entry Values
In the global variable declaration area:
private JTextField teacherName = new JTextField("Type the first name of the teacher here (eg. Ryk)", 10); 
is now simply:
private JTextField teacherName = new JTextField();
and the same for:
private JTextArea comments = new JTextArea();

Added to the top of the insertEntry method:
teacherName.setText("Type the first name of the teacher here (eg. Ryk)");
comments.setText("Place comments here");

MouseClicked--> addEntryButton

  • Now has a JOptionPane that pops up when they press the button Add Entry. 
  • JComboBoxes, text fields, and text areas are reset to original values
  • Tracing statement for the teacherList is now ((Node)teachers.getLast()). instead of .get(0) so that when the tracing is printing, it will print the most recent entry that has been added (I was confused at first before I made this change because the tracing statement wasn't updating xD)

No comments:

Post a Comment