aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes SearchWalker Thread / updating Table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "SearchWalker Thread / updating Table" Watch "SearchWalker Thread / updating Table" New topic
Author

SearchWalker Thread / updating Table

Mario Zott
Greenhorn

Joined: Feb 02, 2003
Posts: 21
Hello everybody,
can you give me your oppinion on the following problem:
Created a SearchWalker Thread which performes criteriaFind on my Flightcontroller, so if nothing was found, it only enables my book / search buttons - which were disabled before starting the thread..., but what should i do with the table if nothing was found, update it with empty FlightTableModel or leave previous records, or should i generally create some sort of output textarea where the user gets some messages, in this case, that no record was found. ??? personally i like the updating with empty TableModel-version the most.
would be great to hear some oppinions...
Eric Blische
Greenhorn

Joined: Feb 02, 2003
Posts: 16
Hi Mario,
My early design uses an approach similar to that which you mentioned - but if no flights are found my table consists of zero rows. I also provide a "Clear flights table" button that takes it back to zero rows.
Also similar to you, I have a two line scrolling text area at the bottom of my GUI where I display status messages (connecting to remote database, accessing flight information, 'N' records returned). I might make it just one line but allow navigation to scrolled-off messages (via up-arrow). A checkbox menu item off of my menu bar will permit hiding/showing the status bar.
Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SearchWalker Thread / updating Table