private void nextButtonActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_nextButtonActionPerformed if (this.sentIndex < (corpusText.size() - 1)) { this.sentIndex++; backButton.setEnabled(true); showAnnotation(); } if (this.sentIndex == corpusText.size()) nextButton.setEnabled(false); } // GEN-LAST:event_nextButtonActionPerformed
private void loadText(String text) { this.corpusText = textReader.read(text); this.sentIndex = 0; this.writer = null; if (corpusText.size() > 1) nextButton.setEnabled(true); /*for (Sentence s : corpusText) { s = annotator.annotate(s); }*/ showAnnotation(); }