java - How to add text from one JTextField to another by pressing a JButton -
i creating applet in java user enters data 4 different 4 different text fields, clicks button, , data taken fields , stored in text field next it.
i have button made, , implements actionlistener, not sure how text 4 fields 1 field together.
just not sure how text 4 fields 1 field together.
jtextfield has gettext()
method. invoke method on 4 different text field string value each text field.
jtextfield has settext()
method. combine 4 strings 1 , set text of 5th text field.
Comments
Post a Comment