Index: trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java
===================================================================
--- trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java	(revision 255)
+++ trunk/src/atmsdriver/trafficeventseditor/TrafficEventsEditor.java	(revision 257)
@@ -994,13 +994,19 @@
     private void addNewTimeFrameButtonClicked(java.awt.event.ActionEvent evt)//GEN-FIRST:event_addNewTimeFrameButtonClicked
     {//GEN-HEADEREND:event_addNewTimeFrameButtonClicked
+        // Show a dialog for the user to select a time in HH:MM:SS
+        TimeSelectionDialog dialog;
         // Obtain the time of the previous time frame
         int size = timeFrames.frames.size();
+        // if a previous frame exists, use its time for default dialog time
         if (timeFrames.frames.size() > 0)
         {
             String prevTime = timeFrames.frames.get(size-1).toString();
-        }
-        // Show a dialog for the user to select a time in HH:MM:SS
-        // TODO: this could be enhanced so it appears with previous time
-        TimeSelectionDialog dialog = new TimeSelectionDialog((JFrame)this, true);
+            dialog = new TimeSelectionDialog((JFrame)this, prevTime);
+        }
+        else  // start with no time default
+        {
+            dialog = new TimeSelectionDialog((JFrame)this);
+        }
+
         dialog.setLocation(200,400);
         dialog.setVisible(true);
