From 81a87add905cb84d1160bb0ec4aa458cd93e9427 Mon Sep 17 00:00:00 2001 From: bartsch-dev Date: Mon, 26 Sep 2016 18:33:04 +0200 Subject: [PATCH] Fix number column alignment (#2072) * fix number column alignment * fix issues --- CHANGELOG.md | 1 + src/main/java/net/sf/jabref/gui/maintable/MainTable.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94103d38e6e..2ed96cd3a15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `# ### Changed - Add session restoring functionality for shared database. Related to [#1703](https://github.com/JabRef/jabref/issues/1703) - Implementation of LiveUpdate for PostgreSQL & Oracle systems. Related to [#970](https://github.com/JabRef/jabref/issues/970). +- [koppor#31](https://github.com/koppor/jabref/issues/31): Number column in the main table is always Left aligned - Added support for [1.0.1 CitationStyles](http://citationstyles.org/) - You can set and cycle between different preview styles (including CitationStyles) - Added fetcher for [MathSciNet](http://www.ams.org/mathscinet), [zbMATH](https://www.zbmath.org/) and [Astrophysics Data System](http://www.adsabs.harvard.edu/) diff --git a/src/main/java/net/sf/jabref/gui/maintable/MainTable.java b/src/main/java/net/sf/jabref/gui/maintable/MainTable.java index 87114fee47a..47d98833920 100644 --- a/src/main/java/net/sf/jabref/gui/maintable/MainTable.java +++ b/src/main/java/net/sf/jabref/gui/maintable/MainTable.java @@ -15,7 +15,6 @@ import javax.swing.ActionMap; import javax.swing.BorderFactory; import javax.swing.InputMap; -import javax.swing.JLabel; import javax.swing.JScrollBar; import javax.swing.JScrollPane; import javax.swing.JTable; @@ -294,7 +293,6 @@ else if (column == 0) { MainTable.incRenderer.setNumber(row); renderer = MainTable.incRenderer; } - renderer.setHorizontalAlignment(JLabel.CENTER); } else if (tableColorCodes || tableResolvedColorCodes) { CellRendererMode status = getCellStatus(row, column, tableResolvedColorCodes); if (status == CellRendererMode.REQUIRED) {