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.