I've formatted the result of a query to MySql's style, with all the +----+.
In eclipse, the string looks just as I want, but in my GUI, it is messed up:
Any idea how can I make the text inside the JTextArea the same as inside eclipse?
I've formatted the result of a query to MySql's style, with all the +----+.
In eclipse, the string looks just as I want, but in my GUI, it is messed up:
Any idea how can I make the text inside the JTextArea the same as inside eclipse?
The text is not messed up, it's just using a non-monospaced font so not all characters have the same width.
Just do this to your TextArea:
textArea.setFont(new Font("Courier New", Font.PLAIN, 12));