ATU COMPUTER SCIENCE FORUM

Hi, Welcome to ATU Computer Science Forum.
Register to enjoy all services.
Thanks
ATU COMPUTER SCIENCE FORUM

MAKE YOUR IT AND OTHER PRESSING MATTERS CONCERNING THE DEPARTMENT KNOWN TO US.

Latest topics

» Programming Tutorial
Sun Nov 27, 2016 1:02 pm by Admin

» ACADEMIC HELP !
Tue Nov 22, 2016 3:37 pm by Admin

» COMPSSA TRENDING ISSUES
Sun Nov 13, 2016 11:14 am by Admin


    Programming Tutorial

    Share
    avatar
    Admin
    Admin

    Posts : 37
    Join date : 2015-11-27
    Age : 33
    Location : Nsawam

    Programming Tutorial

    Post by Admin on Sun Nov 27, 2016 1:02 pm

    after designing the form....

    the event handler for the submit jtextfield..

    Note: this is for only firstname so do the rest..

    private void subKeyReleased(java.awt.event.KeyEvent evt) {    
                               
          String operation = sub.getText();
           String opt = operation.toLowerCase();
           if("submit".equals(opt)){
         
           String fN = fn.getText();
           this.fn.setVisible(false);
           this.fnlab.setText(fN);

    }

      Current date/time is Thu Aug 17, 2017 9:43 am