private void jTextField1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextField1KeyReleased
        // TODO add your handling code here:

        if (jRadioButton1.isSelected()) {
            try {

                ResultSet rs = DB.myConnection().createStatement().executeQuery("select * from author where AuthorName like '" + jTextField1.getText() + "%' order by AuthorName ASC");
                Vector v = new Vector();
                while (rs.next()) {
                    v.add(rs.getString("AuthorName"));
                }
                jComboBox1.setModel(new DefaultComboBoxModel(v));
            } catch (Exception e) {
            }
        } else if (jRadioButton2.isSelected()) {

            try {

                ResultSet rs = DB.myConnection().createStatement().executeQuery("select * from author where AuthorID like '" + jTextField1.getText() + "%' order by AuthorID ASC");
                Vector v = new Vector();
                while (rs.next()) {
                    v.add(rs.getString("AuthorID"));
                }
                jComboBox1.setModel(new DefaultComboBoxModel(v));
            } catch (Exception e) {
            }
        }
        jComboBox1.showPopup();
    }//GEN-LAST:event_jTextField1KeyReleased