This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a JTable whose values gets filled only dynamically. At times, when the table is empty, I want to show a message like "no records found" just under the table header. Just like how in windows machine, when you make a search and if it doesnt return any records, it prints "Search is complete. There are no results to display" (stretching many columns) under the table header. I considered using JLabel (as shown below) but there is always some space b/w the two components. Let me know ur suggestions. Until then, lemme try out other Layout managers. Just a code snippet:
(N. Pruett - fixed page-widening code.) [ March 08, 2004: Message edited by: Nathan Pruett ]