> public void jMenuOptionsLocateDataFile_actionPerformed(ActionEvent
> e) {
> cboRoomNumber.removeAllItems();
> lstComputerNames.getModel();
You don't hold on to the model here.
> data.removeAllElements();
data seems to not have been initialized (nor declared in your example).
> lstComputerNames.removeAll();
>
[quoted text clipped - 13 lines]
> supposed to clear the combo box but it seems to be falling over at
> this point.
Do set a breakpoint there to make sure this is the offending line. I
suspect it is actually the data.removeAllElements().
> Any help in this matter would be highly appreciated.
It would be more helpful (and others will point out the same), to post a
self contained short/simple compilable (!) code example. One that can be
copied into a file and compiled with no further action. Also called
SCCEE (IIRC) ;)
> Thank you

Signature
Sabine Dinis Blochberger
Op3racional
www.op3racional.eu
christopher_board@yahoo.co.uk - 17 Dec 2007 10:16 GMT
On 17 Dec, 09:41, Sabine Dinis Blochberger <no.s...@here.invalid>
wrote:
> christopher_bo...@yahoo.co.uk wrote:
> > public void jMenuOptionsLocateDataFile_actionPerformed(ActionEvent
[quoted text clipped - 44 lines]
>
> - Show quoted text -
Thanks for your. I have managed to resolve the problem before I saw
your message. What I believe I was doing was clearing the data out of
combo box instead of removing the data out of the vector that is being
used. I got the model and then and removed all the elements from the
vector and the problem no longer occurs.
Thanks for your help