private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String Name=jTextField1.getText(); JOptionPane.showMessageDialog(this,Name+"Logged in"+"Password Ignored,will be checked again later"); } Q9. Demo of Switch statement.