Resolved #2431 - new tab/rename prompt

Used a JDialog to prompt the user. Also fixed the while-typing validation because it thought ')' and '%' (and others) were home/end keys and stuff. This isn't the on-tab solution wanted, but it's good enough for a quick fix.