diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:09:27 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:09:27 +0000 |
commit | 3c90890af1d1dcba289b0d117296a0d5d602e4f2 (patch) | |
tree | 79df7425d1615ab2d8b6deae7ee6662af6921ede /pdf-over-gui/src/main/java/at | |
parent | 6491d3da3e16b733a3a93b21837c26ca035ec4ef (diff) | |
download | pdf-over-3c90890af1d1dcba289b0d117296a0d5d602e4f2.tar.gz pdf-over-3c90890af1d1dcba289b0d117296a0d5d602e4f2.tar.bz2 pdf-over-3c90890af1d1dcba289b0d117296a0d5d602e4f2.zip |
Externalize remaining strings
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@163 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java | 3 | ||||
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java index e2379926..233687c4 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/PositioningComposite.java @@ -118,8 +118,7 @@ public class PositioningComposite extends StateComposite { private void requestFocus() { this.frame.requestFocus(); - boolean b = setFocus(); - log.debug("Requesting focus: " + b); + setFocus(); } /** diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java index 3e0d772b..0f8f92c6 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SignaturePanel.java @@ -35,6 +35,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import at.asit.pdfover.gui.Constants; +import at.asit.pdfover.gui.Messages; import com.sun.pdfview.PDFFile; import com.sun.pdfview.PDFPage; @@ -238,7 +239,7 @@ public class SignaturePanel extends JPanel { g.fillRect(0, 0, getWidth(), getHeight()); if (this.currentImage == null) { g.setColor(Color.black); - g.drawString("No page selected", getWidth() / 2 - 30, + g.drawString(Messages.getString("error.SignaturePanel.NoPage"), getWidth() / 2 - 30, //$NON-NLS-1$ getHeight() / 2); if (this.currentPage != null) { showPage(this.currentPage); @@ -301,7 +302,7 @@ public class SignaturePanel extends JPanel { showPage(this.currentPage); } g.setColor(Color.black); - g.drawString("Could not render page", getWidth() / 2 - 30, + g.drawString(Messages.getString("error.SignaturePanel.NoRender"), getWidth() / 2 - 30, //$NON-NLS-1$ getHeight() / 2); } } |