protected void changeSequences() {
    String name1 = (String) seq1Box.getSelectedItem();
    Sequence seq1 = currentSG.getSequenceForName(name1);

    if (revComp1Box.isSelected()) {
      seq1 = seq1.getReverseComplement();
      seq1.setName(name1);
    }

    String name2 = (String) seq2Box.getSelectedItem();
    Sequence seq2 = currentSG.getSequenceForName(name2);
    if (revComp2Box.isSelected()) {
      seq2 = seq2.getReverseComplement();
      seq2.setName(name2);
    }
    dotPlot.setSequences(seq1, seq2);
    repaint();
  }
 /**
  * Get the next sequence using an Oracle thread-safe sequence
  *
  * @param name Name is the name of the oracle sequence.
  * @return the next sequence
  */
 public int getNextId(String name) throws DataAccessException {
   Sequence sequence = new Sequence();
   sequence.setName(name);
   sequence = (Sequence) getSqlMapClientTemplate().queryForObject("oracleSequence", sequence);
   return sequence.getNextId();
 }