From d2ddf938092bfd226f73cb63a61494a1d2dccec6 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 27 May 2018 17:20:55 +0200 Subject: [PATCH] Import inspection uses now same font size setttings as maintable (#4062) * Set import inspection table row size to the same size as the maintable * add changelog --- CHANGELOG.md | 1 + .../org/jabref/gui/importer/ImportInspectionDialog.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f51a43499f..5d310d4abb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# - We added a formatter for adding braces around the `title` field. E.g., `title = {ExamPle}` becomes `title = {{ExamPle}}`, which prevents BibTeX to convert it to lower case. You can use it at the [cleanup entries](http://help.jabref.org/en/CleanupEntries) functionality. - We added a formatter to ensure correct en dashes in the `title` field. E.g., `title = {Example - illustrative}` becomes `title = {Example -- illustrative}`. - We streamlined the defaults for a [cleanup of entries](http://help.jabref.org/en/CleanupEntries) in the case of BibTeX. +- The import inspection window now uses the same font size setting as the maintable [Feature request in the forum](http://discourse.jabref.org/t/inspection-window-and-others-line-height-of-table-too-small-for-fonts/1168) ### Fixed - We fixed an issue where the export to clipboard functionality could not be invoked. [#3994](https://github.com/JabRef/jabref/issues/3994) diff --git a/src/main/java/org/jabref/gui/importer/ImportInspectionDialog.java b/src/main/java/org/jabref/gui/importer/ImportInspectionDialog.java index 882067c44c8..f6a289752c3 100644 --- a/src/main/java/org/jabref/gui/importer/ImportInspectionDialog.java +++ b/src/main/java/org/jabref/gui/importer/ImportInspectionDialog.java @@ -1358,6 +1358,12 @@ class EntryTable extends JTable { public EntryTable(TableModel model) { super(model); getTableHeader().setReorderingAllowed(false); + + setFont(GUIGlobals.currentFont); + int maxOfIconsAndFontSize = Math.max(GUIGlobals.currentFont.getSize(), Globals.prefs.getInt(JabRefPreferences.ICON_SIZE_SMALL)); + setRowHeight(Globals.prefs.getInt(JabRefPreferences.TABLE_ROW_PADDING) + maxOfIconsAndFontSize); + // Update Table header with new settings + this.getTableHeader().resizeAndRepaint(); } @Override