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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -