boolean parse jtextfield

Java
boolean value = Boolean.parseBoolean(idJTextField.getText());
Source

Also in Java: