pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1703253 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/pagepane/PagePane.java
Date Tue, 15 Sep 2015 16:56:21 GMT
Author: tilman
Date: Tue Sep 15 16:56:21 2015
New Revision: 1703253

URL: http://svn.apache.org/r1703253
Log:
PDFBOX-2941: show wait message when rotating or zooming

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/pagepane/PagePane.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/pagepane/PagePane.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/pagepane/PagePane.java?rev=1703253&r1=1703252&r2=1703253&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/pagepane/PagePane.java
(original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/pdfdebugger/pagepane/PagePane.java
Tue Sep 15 16:56:21 2015
@@ -78,7 +78,6 @@ public class PagePane implements ActionL
         label = new JLabel();
         label.setBackground(panel.getBackground());
         label.setAlignmentX(Component.CENTER_ALIGNMENT);
-        label.setText("Loading...");
         panel.add(label);
         panel.addAncestorListener(this);
 
@@ -150,6 +149,8 @@ public class PagePane implements ActionL
         @Override
         protected BufferedImage doInBackground() throws IOException
         {
+            label.setIcon(null);
+            label.setText("Loading...");
             PDFRenderer renderer = new PDFRenderer(document);
             BufferedImage bim = renderer.renderImage(pageIndex, scale);
             return ImageUtil.getRotatedImage(bim, rotation);



Mime
View raw message