File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes reading / writing data and populating JComboBox with values based on array size. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "reading / writing data and populating JComboBox with values based on array size." Watch "reading / writing data and populating JComboBox with values based on array size." New topic
Author

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

Peter black
Greenhorn

Joined: Apr 28, 2013
Posts: 1

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:

[youtube]http://youtu.be/A6xMAtcSQ84[/youtube]


Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 825
    
    5

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.


The quieter you are, the more you are able to hear.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reading / writing data and populating JComboBox with values based on array size.