Ejemplo n.º 1
0
 @Override
 public void actionPerformed(ActionEvent event) {
   Cursor cursor = hydc3View.getCursor();
   hydc3View.setCursor(new Cursor(Cursor.WAIT_CURSOR));
   String sCommand = event.getActionCommand();
   try {
     if ("searchWithCharacter".equals(sCommand)) {
       searchWithCharacter();
     } else if ("searchWithWord".equals(sCommand)) {
       searchWithWord();
     } else if ("searchWithReading".equals(sCommand)) {
       searchWithReading();
     } else if ("searchWithCode".equals(sCommand)) {
       searchWithCode();
     } else if ("searchWithStrokes".equals(sCommand)) {
       searchWithStrokes();
     }
   } catch (SQLException e) {
     e.printStackTrace();
   }
   hydc3View.setCursor(cursor);
 }