I'm having some difficulty with an application that i'm writing. It's a tool to query a database. When the application is started everything appears to run fine. But the application only lets the user run one query. i.e. after the first query the GUI stops working and doesn't let me click any buttons. Can anyone help me? Here's some of the code, i've tried to post what i think are relevant parts. if anyone needs to see more code let me know and i'll post it :
I would be grateful for any help
Pete<br />"Reality is an illusion <br />brought on by a lack of <br />drink, drugs and smut"
Can you explain (or post the code) what those methods does? if (!loadDBDriver()) System.exit(0);if (!getDBConnection()) System.exit(0);//// We update the choice items//if (!updateChoiceItems()) System.exit(0);
By constantly trying one ends up succeeding. Thus: the more one fails the more one has a chance to succeed.
Joined: Dec 06, 2001
the methods loadDBDriver and getDBConnection try to load the database driver and connect to the database or exit from the system. updateChoiceItems loads records from the database into a choice button in the GUI. I don't think that these methods are the problem. The problem i'm having is really weird i hope that explains the methods. If necessary i will post the code