article

Sunday, June 30, 2019

How to create simple Java Swing GUI with Netbeans IDE

How to create simple Java Swing GUI with Netbeans IDE


 
    private void cmdsubmitbuttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmdsubmitbuttonActionPerformed
        // TODO add your handling code here:
        String name = JOptionPane.showInputDialog("Type your name please");
        JOptionPane.showMessageDialog(null, "Hello " + name);
        //JOptionPane.showMessageDialog(null, "Hello World");
    }//GEN-LAST:event_cmdsubmitbuttonActionPerformed

Related Post