• 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

reading / writing data and populating JComboBox with values based on array size.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I want this program to open a file, read the values, display the selected set of values(based off of JComboBox), edit whichever set of values is selected and save to file. Current Bugs: 1) JComboBox does not always update correctly. 2) Saved data does not populate correct JComboBox values durring run-time.) Saved data does not load Hex Values(seperated by "H") The first time, I have to 'Open' 2 times to show values AND it doubles the amount of values that should be shown.. I know it is a lot of questions in one, but if I could atleast be steered in the right direction as I am new to JAVA. Thanks in advance. I made a youtube video of the problems:




 
Bartender
Posts: 825
5
Python Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Posting 500+ lines of code is not going to be very helpful here, so you need to IsolateTheProblem (<-click) and TellTheDetails (<-click).

From what I can see just by running through your code, the design is wrong from the beginning - you put the entire code in one class, and all methods are declared to be public and static.
 
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic