This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

repaint issue

 
ravikumar Chilukuri
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


I'm developing a application which fetches data to edit and inserts back into database..

i have created a generic class(Execute.java) which handles all database processes. every database request goes through it.

ex: if i'm finding somthing from findPanel, all the criteria wraped into command object and passed it to executeCommand method in Execute class.


now i'm trying to display a gif image in my application when process enters "executeCommand" method and disable it when process completes.

but i'm unable to do it.....
please suggest me a way to do it.........
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what's the problem?

showing the .gif, or getting rid of it?

you seem to have a history of ignoring requests for specific info
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:what's the problem?

showing the .gif, or getting rid of it?

you seem to have a history of ignoring requests for specific info


Agree, and in fact he appears to be ignoring all replies to previous threads.

ravikumar, if you want to motivate others to help you, please respond to replies and also read SayThanks

Much luck!
 
ravikumar Chilukuri
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

the .gif should display only when database process is running, but at this point GUI was inactive so .gif was not displaying
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the 'database process' needs to be done via a separate thread.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ravikumar Chilukuri wrote:
the .gif should display only when database process is running, but at this point GUI was inactive so .gif was not displaying

Thanks for your reply. Your problem may be due to your calling your database code on the Swing thread, the EDT. Please read the tutorial Concurrency in Swing.

Edit: as Michael states above my post! Note that this is only a guess since we haven't seen any code.
 
ravikumar Chilukuri
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thanyou for the reply... the tutorial was really good and helpfull.

my issue was resolved....

thankyou very much....
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ravikumar Chilukuri wrote:
Thanyou for the reply... the tutorial was really good and helpfull.
my issue was resolved....
thankyou very much....


Quite welcome and glad you've got it resolved. Thanks for letting us know!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic