• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Array display on JTextarea using JRadiobutton and Jbutton.

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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…..
 
Marshal
Posts: 79072
376
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 79072
376
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have already made a suggestion how to start. That was over a week ago.
reply
    Bookmark Topic Watch Topic
  • New Topic