Sunday, 25 October 2015

String type java programming

String type java programing
  • Open netbeans and make new application with new name.
  • Right click on new application and select new frame.
  • Drop four jLabel,jTextField and jButton from pallet on frame.
  • Name these component as your wish.
  • Double click on jButton.
  • Source code editor will turn up.
  • Type the cooding given in the picture below.


  • Declear the variables.
  • Get text means to take text.
  • Set text means to provide text.
Completing it right click on the window and click run file.


  • Type only on that text field which is related with get text.
  • Click on button and see what happens.

No comments:

Post a Comment