// run the desired query
query = "SELECT * FROM twee ORDER BY ip ASC;";
//make a statement with the server
stmt = con.createStatement();
//execute the query and return the result
rs = stmt.executeQuery(query);

// create a temporary object array to hold the result for each row
Object[] rows;
// for each row returned
while (rs.next()) {
// add the values to the temporary row
rows = new Object[]{rs.getString(1), rs.getString(2), rs.getString(3), rs.getString(4)};
// add the temp row to the table
mTableModel.addRow(rows);