Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Peter black
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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:




 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic