@Override
				public boolean verify(JComponent input) {
					setStatus("");
					String dbName = nameField.getText().trim();
					if (dbName.length() == 0) {
						setStatus("");
						return false;
					}
					// Naming restrictions based upon PostgreSQL and its allowance of unicode chars
					for (int i = 0; i < dbName.length(); i++) {
						char c = dbName.charAt(i);
						if (Character.isLetter(c)) {
							continue;
						}
						if (i == 0 || (!Character.isDigit(c) && c != '_')) {
							setStatus("Unsupported database name");
							return false;
						}
					}
					return true;
				}
Dialog for entering new BSim database server definition
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/search/dialog/CreateBsimServerInfoDialog.java