tfPage.getDocument().addDocumentListener(new PageNrDocumentListener());
selectionImage.getRelRect().addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
if (previewListenerDisabled)
return;
final RelRect tmpRect = selectionImage.getRelRect();
if (pdfPageSize == null || !tmpRect.isValid()) {
// tfPosLLX.setText(null);
// tfPosLLY.setText(null);
// tfPosURX.setText(null);
// tfPosURY.setText(null);
return;
}
tfPosLLX.setText(String.valueOf(tmpRect.getRelLeft() * pdfPageSize.getX()));
tfPosLLY.setText(String.valueOf((1 - tmpRect.getRelBottom()) * pdfPageSize.getY()));
tfPosURX.setText(String.valueOf(tmpRect.getRelRight() * pdfPageSize.getX()));
tfPosURY.setText(String.valueOf((1 - tmpRect.getRelTop()) * pdfPageSize.getY()));
}
});
cbDisplayMode.setModel(new DefaultComboBoxModel(RenderMode.values()));
extraInfo = new PdfExtraInfo(anOptions);
previewDialog.add(selectionImage, java.awt.BorderLayout.CENTER);