Hey im having trouble with checking if a JTextField value is given. I think I have the correct code, but it is not saying anything that could possible be broken.
Q: Why wont it display or run the Game.main(null) when the value of the textfield is "Dianamu" ?
public void mouseClicked(MouseEvent e) {
String values = textField1.getText();
if(values == "Dianamu"){
Game.main(null);
}
System.out.println("Login Works:");
}
Thanks in Advance