George Avilez wrote:Line 112 is where the problem is. Can anyone help me out?
setText of JTextArea is a "setter" method, it has a void return type and obviously you can't use a void in an expression.
You have repeated the latinText.setText(translate(text)) just done before. Simply use latinText.getText() in the showMessageDialog invocation.
P.S. another (better) way is to assign the return value of translate to a variable, and than use this variable for latinText.setText and for the message of showMessageDialog.
Oh ok I see. THere is no longer any run time errors but now the new text will not show my converted text. All it show's is ~Your sentence in pig latin is: (just a blank space)~
112-115 is the new look. Oh and btw the previous code was an older attempt. This one is slightly new with like 5 changes including the dialog box
the new thread boost feature brings a LOT of attention to your favorite threads