@Override
	public void windowGainedFocus(WindowEvent e) {
		
		if ( loggedInEmployee != null )
		{
			int selectedRow = tableAllOrders.getSelectedRow();
			int numberOrders = tableAllOrders.getRowCount();

			RefreshTableData( loggedInEmployee );
			
			// If the row previously selected was paid for, no row will be selected after a refresh. 
			// Otherwise the refresh will wipe out the previously selected row
			if ( tableAllOrders.getRowCount() != numberOrders )
			{
				tableAllOrders.changeSelection(0, 0, false, false);
			}
			else
			{
				tableAllOrders.changeSelection(selectedRow, 0, false, false);
			}
		}
		tableAllOrders.requestFocus();
	}