Need GUI help!!!

In this GUI class that I am writing I have a bit of code that works perfectly when executed at the begginning of the class

selectedSigns = conf.configure(file.readSignID(),"Select desired Signs");

selectedCameras = conf.configure(file.readCamID(),"Select Desired Cameras");

but later in the class the same instruction yields a completley different result

file.writeConfFile("tdot.conf", conf.configure(file.readSignID(),"Select desired Signs"));

file.writeConfFile("camera.conf", conf.configure(file.readCamID(),"Select Desired Cameras"));

of course the only difference here is in the first snippet the result is saved to a var and in the second part the result is passed to another method that writes the info to a file. The problem I am having is when I execute the code at the beginning of execution (snippet 1) the window shows up just like I would expect, but when I try to execute the code later in the program (snippet 2) the window shows up but there is nothing in it! Any help is appreciated!

[1198 byte] By [iamkrillin2a] at [2007-10-2 15:28:57]
# 1

I doubt you will get much help unless you provide more details / context. What is the conf object's type? What is the file object's type? What does the call to configure do? What does the call to readSignID do? What window are you talking about?

Have you tried storing the configure's call result in a variable and passing the variable into writeConfFile? Then run a debugger and see if it is the configure or writeConfFile that is failing.

BaltimoreJohna at 2007-7-13 14:50:25 > top of Java-index,Desktop,Core GUI APIs...
# 2

The conf object refers to an instance of a GUI class that is responsible for drawing the window with the selectable objects in it.

The file object refers to an instance of a file read/write class that simply handles reading conf files and writing preferences to files for reload.

& I have checked to make sure that the information being passed to conf is the same both times but dumping the result of the file read to the command line.

The source for the 3 files in question can be found here

http://pstcc11.pstcc.edu/~c2645a12/confGUI.java

http://pstcc11.pstcc.edu/~c2645a12/fileOperations.java

http://pstcc11.pstcc.edu/~c2645a12/manualGUI.java

Thanks again for taking the time to help me!

iamkrillin2a at 2007-7-13 14:50:25 > top of Java-index,Desktop,Core GUI APIs...