Skip to content

Commit

Permalink
Merge pull request #157 from finos/gh-156
Browse files Browse the repository at this point in the history
make error display respect the font size setting
  • Loading branch information
gyorokpeter authored Nov 18, 2024
2 parents 20616f6 + afc76bc commit 962b13b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/studio/ui/TabPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ private void initComponents(KTableModel model) {
String hint = QErrors.lookup(queryResult.getError().getMessage());
hint = hint == null ? "" : "\nStudio Hint: Possibly this error refers to " + hint;
textArea.setText("An error occurred during execution of the query.\nThe server sent the response:\n" + queryResult.getError().getMessage() + hint);
Font defaultFont = textArea.getFont();
textArea.setFont(new Font(defaultFont.getName(), defaultFont.getStyle(), Config.getInstance().getFontSize()));
textArea.setForeground(Color.RED);
textArea.setEditable(false);
component = new JScrollPane(textArea);
Expand Down

0 comments on commit 962b13b

Please sign in to comment.