What i want to do:
I want to list some records of a database. This list should be displayed in a JFrame popup.
Description:
You do not need to write so many lines of code to display a file. Just download the jar file rs2xml and add it to your project library.
Note: This will be useful if you are using netbeans
How to use it?
Write your query:
ps=con.prepareStatement("select * from register");
ResultSet r=ps.executeQuery();
jTable1.setModel(DbUtils.resultSetToTableModel(r)); //display the register