I am trying to compare a number inserted into a jtextfield with a number generated with the program. Unfortunately the numbers never evaluate as equal. Here is an example of the code I'm working with. In the example if the user inserts 10 is should come up as equal but it still comes up as false.
[code=java]
import java.awt.*;
import java.awt.event. *;
import javax.swing.*;


public class GamePanel...