commit JFrame