File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

SearchWalker Thread / updating Table

Mario Zott

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

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.
I agree. Here's the link:
subject: SearchWalker Thread / updating Table
It's not a secret anymore!