+ 3

Hi, I Have a question. How can i save the JTextField content in ArrayList using a JButton?

13th Jul 2017, 12:20 PM
Saeid Rasouli
Saeid Rasouli - avatar
5 Antworten
+ 10
arrylist.add (idOftextfield.getText().toString()); it's like that
14th Jul 2017, 12:26 PM
Said BAHAOUARY
Said BAHAOUARY - avatar
+ 10
This would help you out ( if you meant about transferring the JTextField content into an ArrayList ) : https://stackoverflow.com/questions/13743652/put-data-from-jtextfields-into-arraylist-on-jbutton-click-actionlistener
14th Jul 2017, 12:20 PM
Dev
Dev - avatar
+ 8
@Saeid I'm not a Java GUI developer so I'm unaware of all these stuff. Therefore, I provided you the most better link. Understanding depends on your knowledge, I think you should see what @said has to say about your issue :]
14th Jul 2017, 1:29 PM
Dev
Dev - avatar
+ 2
thank you! i have seen more than 10 posts in "stackoverflow" since yesterday but all of them were unrelated to my Q.
14th Jul 2017, 1:36 PM
Saeid Rasouli
Saeid Rasouli - avatar
+ 1
@Dayve it's really hard to understand that code! for example alleVareList = kaldSQL.alleVarer(connectDB);
14th Jul 2017, 1:16 PM
Saeid Rasouli
Saeid Rasouli - avatar