This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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
 
Similar Threads
Beware of Finders and Getters for CMP in Weblogic
Trigger Function Problem
cmr 1-many difficulty
Thread in clustered environment
B&S: How to know which record in search Jtable is selected