Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Array display on JTextarea using JRadiobutton and Jbutton.  RSS feed

 
chris uchime
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Am trying to implement a jframe with the following components:
Jtextarea, Jtextfield1, Jtextfield2, Jtextfield3 and three grouped JRadio buttons namely (continuee, save, cancel) and a “Submit” button.
I have this code that is meant to store a list of sales items in an array, then displays them in Jtextarea and then continues to update the items if the “continue” button is selected, or displays array items in Jtextarea and save the items in the database if “save” button is selected, or deletes/refreshes the array items if “cancel” button is selected.
So far I have this code, but still have some issues to fix… like, 1) each item is displayed twice per entry. 2) the items are not stored as array. 3) cant get items displayed in jtextarea. 4) how can I really refresh an array?
These are my codes so far. Please any help would be much appreciated…..
 
Campbell Ritchie
Marshal
Posts: 55715
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with an application which stores the array and does not have any GUI code at all.
 
chris uchime
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I came up with the following codes with JFrame and swing control.. everything seems to work fine but the items are not arrayed and it only displays the current text on the jtextfield... please any good suggestions will be appreciated: below are the codes for the jframe and swing ....

 
Campbell Ritchie
Marshal
Posts: 55715
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have already made a suggestion how to start. That was over a week ago.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!