This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Hello Friends I want to dynamically generate Jtable so that I will be able to display the data as per the resultset rows i.e I can have the same number of rows within the JTable as much records I have received from the resultset. Please provide me the solution as early as possible. If possible please provide me with the code. Waiting for reply. Deepal
posted 15 years ago
This is a very easy problem. Use JTable in conjunction with DefaultTableModel, or create your own model by sub-classing DefaultTableModel. Update your table through the model. I wont give you the full solution because you'll learn much more if you go into the docs and figure it out yourself. Dont ask people to solve problems for you. It's obvious that you have'nt even bothered to look at the documentation, otherwise you would have a idea of what you have to do.
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF