}// </editor-fold>//GEN-END:initComponents
private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed
if(newWordInput.getText().length() > 6){
AddNewWordService serviceCall = new AddNewWordService();
if(serviceCall.addWord(newWordInput.getText())) {
System.out.println("in if");
statusLabel.setText("<html>Your word has been inserted!<html>");
}
else {
System.out.println("in else");
statusLabel.setText("<html>There was an error when inserting your word<html>");
System.out.println(serviceCall.addWord(newWordInput.getText()));
}
}
else {
String message = "The word must be longer than 6 letters";