• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

repaint issue  RSS feed

 
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.........
 
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
 
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!