Index: trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swing/DlgSequences.java
===================================================================
--- trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swing/DlgSequences.java	(revision 172)
+++ trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/swing/DlgSequences.java	(revision 173)
@@ -21,11 +21,28 @@
 import java.awt.event.WindowEvent;
 
+/**
+ * <p>
+ * This class provides the dialog to choose one of the available sequences after
+ * parsing a log
+ * </p>
+ * 
+ * @author Jeffrey Hall
+ * @version 1.0
+ */
 public class DlgSequences {
 
-	private JFrame frmSequences;
+	/**
+	 * <p>
+	 * All the sequences that are found in the parsed log
+	 * </p>
+	 */
 	private List<List<Event<?>>> containedSequences;
 
+	private JFrame frmSequences;
+
 	/**
-	 * Launch the application.
+	 * <p>
+	 * Launch the dialog
+	 * </p>
 	 */
 	public static void showDialog() {
@@ -44,5 +61,7 @@
 
 	/**
-	 * Create the application.
+	 * <p>
+	 * Create the dialog
+	 * </p>
 	 */
 	public DlgSequences() {
@@ -51,5 +70,7 @@
 
 	/**
+	 * <p>
 	 * Initialize the contents of the frame.
+	 * </p>
 	 */
 	@SuppressWarnings("unchecked")
@@ -65,10 +86,5 @@
 			}
 		});
-		final javax.swing.DefaultListModel modelListSequences = new javax.swing.DefaultListModel();
-		final JButton btnSequence = new JButton("Show details");
-		final JButton btnClose = new JButton("Close");
-		JPanel panel = new JPanel();
 
-		// JFrame: frmSequence ***
 		frmSequences.setTitle("Sequences");
 		frmSequences.setResizable(false);
@@ -77,11 +93,35 @@
 		frmSequences.getContentPane().setLayout(null);
 
+		final javax.swing.DefaultListModel modelListSequences = new javax.swing.DefaultListModel();
+		final JButton btnSequence = new JButton("Show details");
+		final JButton btnClose = new JButton("Close");
+
+		JPanel panel = new JPanel();
+		panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
+		panel.setBounds(10, 11, 244, 218);
+		frmSequences.getContentPane().add(panel);
+		panel.setLayout(null);
+
+		JScrollPane scrollPane = new JScrollPane();
+		scrollPane.setBounds(10, 11, 224, 196);
+		panel.add(scrollPane);
+		final JList listSequences = new JList(modelListSequences);
+		scrollPane.setViewportView(listSequences);
+
+		JPanel panel_1 = new JPanel();
+		panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
+		panel_1.setBounds(10, 240, 244, 53);
+		frmSequences.getContentPane().add(panel_1);
+		panel_1.setLayout(null);
+
+		// get the available sequences out of globalDataContainer
 		try {
 			containedSequences = (List<List<Event<?>>>) GlobalDataContainer
 					.getInstance().getData("sequences");
 		} catch (ClassCastException e) {
-			Console.println("Not able to cast Data in GlobalDataContainer to List of Sequences");
+			Console.println("Not able to cast data in globalDataContainer to list of sequences");
 		}
 
+		// display sequences in the dialog
 		try {
 			for (int i = 0; i < containedSequences.size(); i++) {
@@ -93,19 +133,6 @@
 		}
 
-		panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
-		panel.setBounds(10, 11, 244, 218);
-		frmSequences.getContentPane().add(panel);
-		panel.setLayout(null);
-		// ***
-
-		// JScrollPane: scrollPane
-		JScrollPane scrollPane = new JScrollPane();
-		scrollPane.setBounds(10, 11, 224, 196);
-		panel.add(scrollPane);
-		final JList listSequences = new JList(modelListSequences);
-		scrollPane.setViewportView(listSequences);
-		// ***
-
-		// JList: listSequnces
+		// enable/disable the "Show details" button by selecting/deselecting a
+		// sequence
 		listSequences.addListSelectionListener(new ListSelectionListener() {
 			public void valueChanged(ListSelectionEvent arg0) {
@@ -117,12 +144,5 @@
 		});
 
-		JPanel panel_1 = new JPanel();
-		panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
-		panel_1.setBounds(10, 240, 244, 53);
-		frmSequences.getContentPane().add(panel_1);
-		panel_1.setLayout(null);
-		// ***
-
-		// JButton: btnSequence ***
+		// listener for clicking the "Show details" button
 		btnSequence.addMouseListener(new MouseAdapter() {
 			public void mouseClicked(MouseEvent arg0) {
@@ -140,7 +160,6 @@
 		panel_1.add(btnSequence);
 		btnSequence.setEnabled(false);
-		// ***
 
-		// JButton: btnClose ***
+		// listener for clicking the "Close" button
 		btnClose.addMouseListener(new MouseAdapter() {
 			public void mouseClicked(MouseEvent arg0) {
@@ -150,5 +169,4 @@
 		btnClose.setBounds(10, 11, 110, 32);
 		panel_1.add(btnClose);
-		// ***
 	}
 }
