/// <summary>
        /// Processes a table selection (either via a mouse press or programmatically
        /// from selectTableIndex() by writing the old data back to the data set component
        /// and getting the next selection's data out of the data and displaying it on the form. </summary>
        /// <param name="index"> the index of the reservoir to display on the form. </param>
        private void processTableSelection(int index)
        {
            /*
             * Message.printStatus(1, "", "Current: " + __currentStationIndex);
             * Message.printStatus(1, "", "Last: " + __lastStationIndex);
             * Message.printStatus(1, "", "Orig: " + __worksheet.getOriginalRowNumber(index));
             * Message.printStatus(1, "", "Index: " + index);
             */
            __lastStationIndex    = __currentStationIndex;
            __currentStationIndex = __worksheet.getOriginalRowNumber(index);

            saveLastRecord();

            if (__worksheet.getSelectedRow() == -1)
            {
                JGUIUtil.disableComponents(__disables, true);
                return;
            }

            JGUIUtil.enableComponents(__disables, __textUneditables, __editable);

            StateMod_RiverNetworkNode rnn = (StateMod_RiverNetworkNode)__riverNetworkNodesVector[__currentStationIndex];

            __idJTextField.setText(rnn.getID());
            __nameJTextField.setText(rnn.getName());
            __nodeJTextField.setText(rnn.getCstadn());
            __commentJTextField.setText(rnn.getComment());
            checkViewButtonState();
        }
 /// <summary>
 /// Called by JFrames when a data object is selected from the table of names and
 /// ids.  This enables what needs to be enabled properly. </summary>
 /// <param name="components"> an array of all the JComponents on the form which can be
 /// enabled when something is selected. </param>
 /// <param name="textUneditables"> an array of the elements in disables[] that should never be editable. </param>
 /// <param name="editable"> whether the form is editable or not. </param>
 /// @deprecated Use JGUIUtil.enableComponents
 public static void somethingSelected(JComponent[] components, int[] textUneditables, bool editable)
 {
     JGUIUtil.enableComponents(components, textUneditables, editable);
 }