String toPrintOnGUI = ""; while (resultSet.next()) { for (int i = 1; i <= columnsNumber; i++) { toPrintOnGUI += (resultSet.getString(i) + " \t"); } toPrintOnGUI = toPrintOnGUI.substring(0, toPrintOnGUI.length() - 1); toPrintOnGUI += "\n"; } JTextArea label = new JTextArea(toPrintOnGUI); label.setBackground(Color.WHITE); panel.add(label); frame.setVisible(true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)