@Override
	public void actionPerformed(ActionEvent e) {
		String input = "";
		while ((input != null) && (!input.matches("[0-9]{1,3}"))) {
			input = (String) JOptionPane.showInputDialog(tabManager,
					"Please input the number of list entries:", "Insert List",
					JOptionPane.PLAIN_MESSAGE, null, null, "");
		}

		if (input != null) {
			int numEntries = Integer.parseInt(input);

			String inputText = "<ol>";
			String entryText = "	<li></li>\n";

			for (int i = 0; i < numEntries; i++) {
				inputText += entryText;
			}
			inputText += "</ol>";

			tabManager.InsertText(inputText);
		}
	}