• Post Reply Bookmark Topic Watch Topic
  • New Topic

Client GUI Refresh question

 
xiao gao
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all
It is my first posting though I have been a silent observer for a long time.
From my requirement, I know the book result is not required to be displayed on other clients' machines, that means, if I book 2 seats for a flight, other clients will not know that change. But is it necessary to refresh my own JTable to display the change of this booking process?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it would be nice. I have mine, and all I had to do to refresh was call the criteriaFind method and refresh the JTable.
Not sure if it is mandatory, but would it affect your booking function. Meaning, if you don't refresh and there are 10 seats. You book 4, then 4 more, then 4 more. To the user there are still 10 seats showing in your Table, even though the last booking won't go through.
Mark
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!