Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Event Problem?

 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Younes Essouabni
Ranch Hand
Posts: 479
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the methods anyway
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic