Beispiel #1
0
 public void searchWithCode() throws SQLException {
   String sCode = hydc3View.getInputText();
   int code = 0;
   if (sCode.matches("(0[Xx]|U\\+)[0-9A-Fa-f]+")) {
     code = Integer.parseInt(sCode.substring(2), 16);
   } else if (sCode.matches("[0-9]+")) {
     code = Integer.parseInt(sCode);
   } else if (sCode.matches("[0-9A-Fa-f]+")) {
     code = Integer.parseInt(sCode, 16);
   }
   String[] sCharacters = hydc3Model.searchWithCode(code);
   hydc3View.setSelectingList(sCharacters);
 }