Package service

Examples of service.AddNewWordService


    }// </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";
View Full Code Here

TOP

Related Classes of service.AddNewWordService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.