• Post Reply Bookmark Topic Watch Topic
  • New Topic

refreshing the screen  RSS feed

 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I,am retrieving some values from the databese and storing them in a JList.
Now there are 4 windows on 4 diff Pc's where these records will be displayed . Now the records which get deleted have to be reflected on all the 4 windows which are accessing this databese .
How do i do this .Please guide me a bit ... this is very urgent .
Thanks a ton in advance
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i,am waiting ..... please help me !
Thanks in advance
 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by raghav mathur:
i,am waiting ..... please help me !
Thanks in advance

Till my knowledge permits...this is some threading related stuff.
You can keep a thread running in background that would check for no. of entries. This thread keeps repeating the procedure after particular interval & loads the value in the JList.
This sort of query has been solved sometime back...I'll try to search for it & get back to you. Till that try to do this kinda stuff.
HTH
MB
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
What i,am thinking is that the select statement will be executed after every 5 seconds( a thread would run for that purpose). But the list needs to emptied and then when the select statement would load the latest records otherwise if the List is not emptied then the data will be appended to the list .
Now the issue is how to empty the list for new records to be entered.
What do you say ?
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did it ... i ,am running a seperate thread for removing the items from the list and then reloading curent database values . This process takes place after every 5 seconds but something strange is happening. I,am working on it ... i'll let you know if i,am unable to tackle it.
Thanks
[ May 02, 2003: Message edited by: raghav mathur ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!